Problem: validating incoming(to program) sqlite database. Under “validate” i mean check that database have specific tables, table names, column(name, type, foreign and primary keys).
Qt provide some ways how to do it but i still cant find how to check foreign keys in table, column types.
Have someone elegant solution of this problem? Examples required too=)
You’ll need to do it manually. Here’s a simple (untested) example for checking for required tables.
Other checks should be as trivial as this one once you’re familiar enough with the information available in the
sqlite_mastertable.