SCHEMAS¶
-
GenericDBWrapper.
SCHEMAS
= []¶ This should be set as a class attribute to a list of two value tuples, each containing the name of a table, and the SQL query to create the table if it doesn’t exist.
Example:
SCHEMAS = [ ( 'my_table', "CREATE TABLE my_table (id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT);" ), ( 'other_table', "CREATE TABLE other_table (id INTEGER PRIMARY KEY AUTOINCREMENT, example TEXT);" ), ]