The TinyDB forum has found a new home at GitHub discussions. The content here remains as a read-only archive.
I'm looking for the best way to add some data about the database itself in json file.
In the end i want have in my json file looking something like this :
'name': "some name",
'version' : "some version"
I want TinyDb working only with data contained in the database dict. Do you think it's doable ?Is Subclassing TinyDB the best way ?
Thank you for your help
yes, you could create a subclass that stores additional data about the database. Alternatively you could also use a meta table (just a table with this name) to store metadata as documents.
Does this help you?