Use sqlite3.Row as row factory

This commit is contained in:
XANTRONIX Industrial 2025-02-13 14:42:04 -05:00
parent cfbb70261e
commit df23ccc113

View file

@ -3,6 +3,7 @@ import sqlite3
class Database():
def connect(path: str):
db = sqlite3.connect(path)
db.row_factory = sqlite3.Row
db.enable_load_extension(True)
db.execute('select load_extension("mod_spatialite.so.8")')