Skip to main content

Sqlite Store

Project description

A Shelve and Document Store backed by Sqlite3

Minimum extenral dependencies Install simply drop into your project by downloading as zip or add a git submodule


https://www.sqlite.org/json1.html

import sqlite3 c=sqlite3.Connection(":memory:") c.execute("CREATE TABLE J(D)") r=c.execute("INSERT INTO J VALUES(JSON_OBJECT('someKey', 'someValue'));") r=c.execute("SELECT * FROM J WHERE JSON_EXTRACT(D, '$.someKey')='someValue'") r.fetchall()

c.execute("EXPLAIN query plan SELECT * FROM J WHERE JSON_EXTRACT(D, '$.someKey')='someValue'").fetchall()

r=c.execute("CREATE INDEX test_idx ON J(JSON_EXTRACT(D, '$.someKey'));") c.execute("PRAGMA compile_options;") c.execute("PRAGMA compile_options;").fetchall() ('ENABLE_FTS3',), ('ENABLE_FTS3_PARENTHESIS',), ('ENABLE_FTS3_TOKENIZER',), ('ENABLE_FTS4',), ('ENABLE_FTS5',), ('ENABLE_JSON1',),

are built into SQLite by default, as of SQLite version 3.38.0 (2022-02-22)

are built into SQLite by default, as of SQLite version 3.38.0 (2022-02-22)

con.enable_load_extension(True) con.load_extension("./json1.so")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sqlite_store-0.1.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sqlite_store-0.1.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file sqlite_store-0.1.0.tar.gz.

File metadata

  • Download URL: sqlite_store-0.1.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sqlite_store-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c315aa94d7417c4895cb9471cf4e11c92500a19ba57478ddb2cc087af8008bd9
MD5 581624436044a0f705597a469d33cf3d
BLAKE2b-256 cb09376280b1cd2f3e0e5e7218bd26a4960530777315f9a6b900a0fac1d352b0

See more details on using hashes here.

File details

Details for the file sqlite_store-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: sqlite_store-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sqlite_store-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 067836cf43fd6cd4d0072cda4b9aa2c2046c7fad5cd79dbf35c106e29518502c
MD5 bedcb447f6400900532d249eecd629d2
BLAKE2b-256 ce803545ad5b83d3171eb44f3fb3cdc0bb5b1b3817fd66d8d056c3d68f53d593

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page