4.1. Create a SQLite database from CSV/JSON/Excel

sqlitebiter file is a subcommand to convert CSV/JSON/Excel file(s) to a SQLite database file.

4.1.1. sqlitebiter file subcommand help

Usage: sqlitebiter file [OPTIONS] [FILES]...

  Convert CSV/JSON/Excel file(s) to a SQLite database file.

Options:
  -o, --output-path TEXT  Output path of the SQLite database file
  -h, --help              Show this message and exit.

4.1.2. Example

$ ls
sample_data.csv  sample_data.xlsx  sample_data_multi.json  sample_data_single.json
$ sqlitebiter file * -o sample.sqlite
convert 'sample_data.csv' to 'sample_data' table
convert 'sample_data.xlsx' to 'samplesheet1' table
convert 'sample_data.xlsx' to 'samplesheet3' table
convert 'sample_data_multi.json' to 'table_b' table
convert 'sample_data_multi.json' to 'table_a' table
convert 'sample_data_single.json' to 'sample_data_single' table
$ ls sample.sqlite
sample.sqlite

Convertible JSON format is as follows: http://simplesqlite.readthedocs.io/en/latest/pages/reference/loader.html#jsontablefileloader-class