Pass module name as parameter
This commit is contained in:
parent
bea2f1926d
commit
8e850de88f
1 changed files with 3 additions and 1 deletions
|
@ -112,7 +112,9 @@ class Database():
|
||||||
db.row_factory = sqlite3.Row
|
db.row_factory = sqlite3.Row
|
||||||
db.enable_load_extension(True)
|
db.enable_load_extension(True)
|
||||||
|
|
||||||
db.execute("select load_extension('mod_spatialite.so.8')")
|
db.execute("select load_extension(:ext)", {
|
||||||
|
'ext': 'mod_spatialite.so.8'
|
||||||
|
})
|
||||||
|
|
||||||
return Database(db)
|
return Database(db)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue