From e0001625aee146f7d2f3da4973fcdd1803209769 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Tue, 31 Dec 2024 14:15:20 -0500 Subject: [PATCH] use sqlite3 row class for rows --- nomen/db.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nomen/db.py b/nomen/db.py index 7a38522..c9baabc 100644 --- a/nomen/db.py +++ b/nomen/db.py @@ -107,6 +107,9 @@ async def setup_db(db_file): PRAGMA foreign_keys = ON; """) + log.debug("Setting row factory") + db.row_factory = sqlite3.Row + log.debug("Adding contains function") await db.create_function("contains", 3, contains, deterministic=True)