Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: magifd2/json-to-sqlite
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0.0
Choose a base ref
...
head repository: magifd2/json-to-sqlite
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 6 commits
  • 5 files changed
  • 1 contributor

Commits on Sep 11, 2025

  1. fix: Implement robust SQL identifier quoting

    This addresses a potential issue where JSON keys containing double quotes could lead to SQL syntax errors during table creation, alteration, or data insertion.
    Introduced a quoteIdentifier helper function and applied it consistently.
    magifd2 committed Sep 11, 2025
    Configuration menu
    Copy the full SHA
    e03bfc9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c3c15c9 View commit details
    Browse the repository at this point in the history
  3. feat: Make input file, output DB, and table name mandatory

    This commit introduces stricter argument parsing:
    - The input JSON file is now a required positional argument.
    - The `-o` (output SQLite database file) flag is now mandatory.
    - The `-t` (table name) flag is now mandatory.
    - Default values for `-o` and `-t` have been removed.
    
    Updated README.md and README.ja.md to reflect these changes in usage instructions.
    magifd2 committed Sep 11, 2025
    Configuration menu
    Copy the full SHA
    0c11a67 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    36add5e View commit details
    Browse the repository at this point in the history
  5. feat: Improve CLI usability, help, and documentation

    This commit introduces a comprehensive set of improvements to enhance the tool's usability and documentation clarity.
    
    1.  **Correct Standard Input Handling:**
        The tool now correctly reads from standard input when no input file is specified or when '-' is used as the file name. This fixes a bug and allows for more flexible usage in command-line pipelines.
    
    2.  **Clearer Help Message:**
        The help message (`-h` flag) has been significantly improved. It now explicitly marks required flags (`-o`, `-t`) and provides a clearer, more detailed explanation of the tool's functionality, input methods, and a practical usage example.
    
    3.  **Synchronized Documentation:**
        The `README.md` and `README.ja.md` files have been updated to align with the actual behavior of the CLI. The "Usage" section now clearly explains the required flags and the optional nature of the input file argument, ensuring consistency between the code, help text, and documentation.
    magifd2 committed Sep 11, 2025
    Configuration menu
    Copy the full SHA
    c4f32c0 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2f91ffe View commit details
    Browse the repository at this point in the history
Loading