SQLiteStore¶
- class SQLiteStore(connection=':memory:', compression='zlib', compression_level=9)[source]¶
SQLite backed annotation store.
Uses and rtree index for fast spatial queries.
Methods
append_manyRemove all annotations from the store.
closecommitGet the list of options that sqlite3 was compiled with.
Deserialise a geometry from a string or bytes.
dumpdumpsfeaturesiqueryitemskeysopenpatch_manyqueryremove_manySerialise a geometry to WKB with optional compression.
to_dataframevalues- Parameters
connection (Union[pathlib.Path, str]) –
- Return type
None
- static compile_options()[source]¶
Get the list of options that sqlite3 was compiled with.
Example
>>> for opt in SQLiteRTreeStore.compile_options(): >>> print(opt) COMPILER=gcc-7.5.0 ENABLE_COLUMN_METADATA ENABLE_DBSTAT_VTAB ENABLE_FTS3 ENABLE_FTS3_PARENTHESIS ENABLE_FTS3_TOKENIZER ENABLE_FTS4 ENABLE_FTS5 ENABLE_JSON1 ENABLE_LOAD_EXTENSION ENABLE_PREUPDATE_HOOK ENABLE_RTREE ENABLE_SESSION ENABLE_STMTVTAB ENABLE_UNLOCK_NOTIFY ENABLE_UPDATE_DELETE_LIMIT HAVE_ISNAN LIKE_DOESNT_MATCH_BLOBS MAX_SCHEMA_RETRY=25 MAX_VARIABLE_NUMBER=250000 OMIT_LOOKASIDE SECURE_DELETE SOUNDEX TEMP_STORE=1 THREADSAFE=1