Skip to main content

Custom pyDAL adapter for rqlite (distributed SQLite)

Project description

rqlite for pyDAL

From the rqlite docs:

rqlite is an easy-to-use, lightweight, distributed relational database, which uses SQLite as its storage engine.

See their GitHub page for more info about deploying and managing an rqlite cluster, interacting with the cli or the HTTP API directly.

Example usage:

from pydal import DAL

# required to register rqlite://
import pydal_rqlite

db = DAL("rqlite://localhost", folder="database")
# or with basic auth/custom port/https:
# db = DAL("rqlite://user:pass@localhost:4001", folder="database", driver_args={'https': True})

db should now support the same features the sqlite3 driver for pyDAL does.

Limitations

As specified in the docs of pyrqlite (which is the driver behind this adapter):

Transactions are not supported

This is due to the fact rqlite does not really support transactions. db.commit() and db.rollback() will not raise an exception, but do nothing instead (pass).

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

pydal_rqlite-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

pydal_rqlite-0.1.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pydal_rqlite-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.2

File hashes

Hashes for pydal_rqlite-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0e5bbd8cdc88da15bc9fa03f101e6a37fa600325317e77a8f1509c39db594ceb
MD5 b90016f6fb195c459d2c86dd5210ebf1
BLAKE2b-256 42b2cf8f53df4130805360d1c65190d22c53cc0bec14370d07e8f997e7749375

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydal_rqlite-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9d367919aac173168e6606c747455d7898b3cf54b7be68f8f67fbb44977a19b8
MD5 c4fd95f31da63cb9aa6622935b5d168e
BLAKE2b-256 b7dde608ff4c089ed0bb308fc922c69b55933b05799df2df426690b4610fbd8d

See more details on using hashes here.

Supported by

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