I was wondering if there is an easy way to store meta information about sqlite-Database in this database.
I specifically think about the version number, which allows you to easily find out which version of the database layout you are using (so my code could check the compatibility of the database structure without querying SELECT sql FROM sqlite_master WHERE type='table';
and comparing the result with a predefined schema) . To clarify: I'm not interested in the sqlite software version number, but something similar to the pythons __version__
variable, which can be defined separately for each python file.
I know that I can probably just create a table called "meta" and save it there, but I was wondering if there is a better way to do this.
I also know that checking for compatibility, only checking the version number, has some problems, and I will continue to do other checks if necessary, but for now I'm only interested in the version number that I described.
source share