Add database metadata #1934
tobiasBora
started this conversation in
General
Replies: 1 comment 2 replies
-
I think using dexie that way is more cumbersome and also less performant than having one single database and let every file be represented by a row in one table of the database. You might want to list the databases or index them by some property. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my model, databases informally representing a file, this way I can easily add/import/export/remove files by simply doing the operation on the database. I'd like now to associate to each database a value, like the date of the creation, the name of the file, the version of the format it contains… I could create a table
fileInfo
withid
equal to the name of the property… but this seems dirty, for instance this way I do not get typescript typing etc. Is there a better solution, that would ideally support typescript typing?--EDIT--
Actually, I'm thinking that to get typing, it might be simpler to simply create a row with all parameters, and query the first row always… but curious to know if it is the cleanest way, notably this requires to open the database, which might not be very efficient?
Beta Was this translation helpful? Give feedback.
All reactions