Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/steviecurran/sql2csv
https://github.com/steviecurran/sql2csv
database-management python query-language sql sqlite
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/steviecurran/sql2csv
- Owner: steviecurran
- Created: 2024-06-18T08:11:01.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-24T03:40:44.000Z (5 months ago)
- Last Synced: 2024-06-24T04:46:37.744Z (5 months ago)
- Topics: database-management, python, query-language, sql, sqlite
- Language: Shell
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sql2csv
C shell script to convert an SQL file to CSVs (one for each table). Especially useful when running into errors like "Parse error: file is not a database" and not wanting to take out an online subscription (e.g.
https://www.rebasedata.com/convert-sql-to-csv-online).Should be easily convertable to other shells.
E.g. ./sql2csv.csh WILL GIVE
employees.sql written to
11 departments.csv
331604 dept_emp.csv
49 dept_manager.csv
300025 employees.csv
967331 salaries.csv
443309 titles.csv