Renamed SpatiaLite feature flag introduced in refs #23152.
Thanks Doug Goldstein for the suggestion.
This commit is contained in:
parent
e958c760f9
commit
e548d08f24
|
@ -22,7 +22,7 @@ class DatabaseFeatures(BaseSpatialFeatures, SQLiteDatabaseFeatures):
|
|||
supports_num_points_poly = False
|
||||
|
||||
@cached_property
|
||||
def supports_initspatialmetadata_with_transactions(self):
|
||||
def supports_initspatialmetadata_in_one_transaction(self):
|
||||
# SpatiaLite 4.1+ support initializing all metadata in one transaction
|
||||
# which can result in a significant performance improvement when
|
||||
# creating the database.
|
||||
|
|
|
@ -36,5 +36,5 @@ class SpatiaLiteCreation(DatabaseCreation):
|
|||
Creates the spatial metadata tables.
|
||||
"""
|
||||
cur = self.connection._cursor()
|
||||
arg = "1" if self.connection.features.supports_initspatialmetadata_with_transactions else ""
|
||||
arg = "1" if self.connection.features.supports_initspatialmetadata_in_one_transaction else ""
|
||||
cur.execute("SELECT InitSpatialMetaData(%s)" % arg)
|
||||
|
|
Loading…
Reference in New Issue