mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-15 13:04:10 +02:00
load extensions first, then init spatialite
This commit is contained in:
parent
00b650c684
commit
a974da5919
1 changed files with 4 additions and 4 deletions
|
|
@ -1379,14 +1379,14 @@ def create_database(path, enable_wal, init_spatialite, load_extension):
|
|||
if enable_wal:
|
||||
db.enable_wal()
|
||||
|
||||
# load spatialite from expected locations
|
||||
if init_spatialite:
|
||||
db.init_spatialite()
|
||||
|
||||
# load spatialite or another extension from a custom location
|
||||
if load_extension:
|
||||
_load_extensions(db, load_extension)
|
||||
|
||||
# load spatialite from expected locations and initialize metadata
|
||||
if init_spatialite:
|
||||
db.init_spatialite()
|
||||
|
||||
db.vacuum()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue