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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e5bbd8cdc88da15bc9fa03f101e6a37fa600325317e77a8f1509c39db594ceb |
|
MD5 | b90016f6fb195c459d2c86dd5210ebf1 |
|
BLAKE2b-256 | 42b2cf8f53df4130805360d1c65190d22c53cc0bec14370d07e8f997e7749375 |
File details
Details for the file pydal_rqlite-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pydal_rqlite-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d367919aac173168e6606c747455d7898b3cf54b7be68f8f67fbb44977a19b8 |
|
MD5 | c4fd95f31da63cb9aa6622935b5d168e |
|
BLAKE2b-256 | b7dde608ff4c089ed0bb308fc922c69b55933b05799df2df426690b4610fbd8d |