I need to store multiple tables (say, CSVs) in one file. Is there any spec or standard I can follow?
I tried queries such as "multi-csv standard" and "single file plaintext database" with little to show.
Who would be responsible for creating such a standard?
Here is one plausible option:
# TABLE colors
name,hex
red,ff0000
blue,0000ff
# TABLE users
id,name,followers
1,bob,5
2,alice,33
Why not a directory of tables?
- An empty directory is not acknowledged by git
- Hassle to send over network in one transaction (tar/untar or zip/unzip)
See also
- https://github.com/jennybc/sanesheets/issues/3
- https://www.google.com/search?q=Standard+for+storing+multiple+csv+in+one+file
- CSV Standard - Multiple Tables
- the dump format from sqlite is basically a sequence of commands: https://www.sqlitetutorial.net/sqlite-dump/
- https://en.wikipedia.org/wiki/Flat-file_database
- https://www.gnu.org/software/recutils/
- https://github.com/dbohdan/structured-text-tools#csv
- Import multiple csv files into pandas and concatenate into one DataFrame