Changes to database

This commit is contained in:
BasioMeusPuga
2017-11-06 07:41:07 +05:30
parent de8036b87d
commit b5cbc3d529
2 changed files with 10 additions and 2 deletions

View File

@@ -18,4 +18,10 @@ class DatabaseFunctions:
self.database.execute(
"CREATE TABLE books \
(id INTEGER PRIMARY KEY, Name TEXT, Path TEXT, ISBN TEXT, CoverImage BLOB)")
self.database.execute(
"CREATE TABLE cache \
(id INTEGER PRIMARY KEY, Name TEXT, Path TEXT, CachedDict BLOB)")
# It's assumed that any cached books will be pickled and put into the
# database at time of closing
self.database.commit()