use sqlite3 row class for rows
This commit is contained in:
parent
e31d19bcca
commit
e0001625ae
1 changed files with 3 additions and 0 deletions
|
@ -107,6 +107,9 @@ async def setup_db(db_file):
|
||||||
PRAGMA foreign_keys = ON;
|
PRAGMA foreign_keys = ON;
|
||||||
""")
|
""")
|
||||||
|
|
||||||
|
log.debug("Setting row factory")
|
||||||
|
db.row_factory = sqlite3.Row
|
||||||
|
|
||||||
log.debug("Adding contains function")
|
log.debug("Adding contains function")
|
||||||
await db.create_function("contains", 3, contains, deterministic=True)
|
await db.create_function("contains", 3, contains, deterministic=True)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue