This repo contains a sample csv file and two short programs demonstrating its conversion into a TinyDB file.
They were written to respond to this question in the Discussions section of Marcus Siemens' TinyDB repo on Github.
By default, TinyDB generates and associates a sequential numeric doc_id
to each record inserted into its database. As suggested by their filenames, one program uses that default behavior, while the other assigns the id
field in the source file to the doc_id
field of the TinyDB record.