{"id":24982392,"url":"https://github.com/2002bishwajeet/json-to-sql","last_synced_at":"2025-10-03T20:06:24.556Z","repository":{"id":275601359,"uuid":"926591682","full_name":"2002Bishwajeet/json-to-sql","owner":"2002Bishwajeet","description":"Convert your json data to simple sql queries","archived":false,"fork":false,"pushed_at":"2025-02-14T23:03:33.000Z","size":3934,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-18T02:47:53.835Z","etag":null,"topics":["haskell","json-parser","json-to-sql","sql"],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/2002Bishwajeet.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-03T14:29:42.000Z","updated_at":"2025-02-14T23:03:25.000Z","dependencies_parsed_at":"2025-02-03T15:44:48.005Z","dependency_job_id":null,"html_url":"https://github.com/2002Bishwajeet/json-to-sql","commit_stats":null,"previous_names":["2002bishwajeet/json-to-sql"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/2002Bishwajeet/json-to-sql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2002Bishwajeet%2Fjson-to-sql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2002Bishwajeet%2Fjson-to-sql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2002Bishwajeet%2Fjson-to-sql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2002Bishwajeet%2Fjson-to-sql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2002Bishwajeet","download_url":"https://codeload.github.com/2002Bishwajeet/json-to-sql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2002Bishwajeet%2Fjson-to-sql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271605704,"owners_count":24788967,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["haskell","json-parser","json-to-sql","sql"],"created_at":"2025-02-04T08:43:28.246Z","updated_at":"2025-10-03T20:06:24.475Z","avatar_url":"https://github.com/2002Bishwajeet.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg width=\"1280\" alt=\"Json2Sql\" src=\"/.github/assets/banner.png\"\u003e\n\n# Json to Sql converter\n\nA simple json parser that converts json to sql queries. All the parsed queries are exported to a `.sql` file. This project is written in Haskell Programming language. All the parsers have been written from scratch and no external library has been used.\n\n## Features\n\n- Supports Table Creation\n- Supports Insertion of data\n- Handles arrays and nested objects\n- Supports multiple data types\n- Transcation Sql queries\n\n## Installing\n\nOpen terminal and run the following commands:\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/2002Bishwajeet/json-to-sql/main/setup.sh | bash\n```\n\n## Usage\n\nAfter installation, you can use the `json-to-sql` command to convert a JSON file to SQL. The basic usage is as follows:\n\n```bash\njson-to-sql \u003cfile\u003e [table] [dest] [--normalize]\n```\n\n- `file`: The JSON file to convert.\n- `table`: (Optional) The table name for the SQL file. If not provided, the filename will be used.\n- `dest`: (Optional) Destination path for the SQL file. If not provided, the current directory will be used.\n- `--normalize`: (Optional) Normalize the JSON data.\n\n### Examples\n\nConvert a JSON file to SQL with default settings:\n\n```bash\njson-to-sql data.json\n```\n\nConvert a JSON file to SQL with a specified table name:\n\n```bash\njson-to-sql data.json my_table\n```\n\nConvert a JSON file to SQL with normalization:\n\n```bash\njson-to-sql data.json my_table --normalize\n```\n\nConvert a JSON file to SQL and save the output to a specific directory:\n\n```bash\njson-to-sql data.json my_table /path/to/output --normalize\n```\n\nConvert a JSON file to SQL using named arguments:\n\n```bash\njson-to-sql --file=data.json --table=my_table --dest=/path/to/output --normalize\n```\n\n## Motivation\n\nThe motivation behind this project was to learn functional programming language and this was the best way for me. I chose to implement this project idea as I needed to get some base knowledge around parsers and improve the current online json2sql parsers we have on the web. I won't recommend this to use for complex jsons but for simple jsons, this should work fine.\n\n## Contributing\n\nContributions are highly Welcomed 💙 . Feel free to open PRs for small issues such as typos. For large issues or features, please open an issue and wait for it to be assigned to you.\n\n## License\n\nThis project is open source and available under the [BSD-3-Clause](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2002bishwajeet%2Fjson-to-sql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F2002bishwajeet%2Fjson-to-sql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2002bishwajeet%2Fjson-to-sql/lists"}