Use sqlite3.Row as row factory
This commit is contained in:
parent
cfbb70261e
commit
df23ccc113
1 changed files with 1 additions and 0 deletions
|
@ -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")')
|
||||
|
|
Loading…
Add table
Reference in a new issue