csv-sql-0.4.0 is not a library.
CSV-SQL
A simple CLI tool to generate SQL tables from CSV files
- CSV-SQL will generate SQL table creation statements from CSV files, currently with TEXT data types only.
- CSV-SQL outputs to stdout. You can redirect the output to a file.
Usage
Generate SQL table creation statements from CSV files
- The name of the CSV file will be used as the name of the table.
Generate only the schema without inserting data
Add a serial primary key
Merge multiple tables into one
Redirect output to a file
See all options
Development
Use just for easy development.
See all available commands
Build and run
Clear all *.sql files in current directory
TODO
- Generate SQL table creation statements from CSV files with headers and TEXT data types
- Output to stdout
- Schema only without inserting data
- merge multiple CSV files into one SQL table
- Automatic data type detection
- Custom data types
- Primary keys
- Auto increment
- Custom
- Constraints
- Foreign keys