Skip to main content

SQLAlchemy 2.0 dialect for dqlite distributed SQLite

Project description

sqlalchemy-dqlite

SQLAlchemy 2.0 dialect for dqlite.

Installation

pip install sqlalchemy-dqlite

Usage

from sqlalchemy import create_engine, text

# Sync
engine = create_engine("dqlite://localhost:9001/mydb")
with engine.connect() as conn:
    result = conn.execute(text("SELECT 1"))
    print(result.fetchone())

# Async
from sqlalchemy.ext.asyncio import create_async_engine

async_engine = create_async_engine("dqlite+aio://localhost:9001/mydb")
async with async_engine.connect() as conn:
    result = await conn.execute(text("SELECT 1"))
    print(result.fetchone())

URL Format

dqlite://host:port/database
dqlite+aio://host:port/database

Development

See DEVELOPMENT.md for setup and contribution guidelines.

License

MIT

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

sqlalchemy_dqlite-0.1.2.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

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

sqlalchemy_dqlite-0.1.2-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file sqlalchemy_dqlite-0.1.2.tar.gz.

File metadata

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

File hashes

Hashes for sqlalchemy_dqlite-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c854fe3ef37c4ed6009c30ccd78514ec05f9b231bd5a8ce38e1d498889157197
MD5 fbbce390b2a9ca7ee4e7725738721188
BLAKE2b-256 8b71f84cba8c53400972b8c4fdd05115958585c85c982182e83ac350b4543881

See more details on using hashes here.

Provenance

The following attestation bundles were made for sqlalchemy_dqlite-0.1.2.tar.gz:

Publisher: publish-to-pypi.yml on letsdiscodev/sqlalchemy-dqlite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sqlalchemy_dqlite-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for sqlalchemy_dqlite-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fe16071762e08e4e2ade6735204d89df02a581a2b42ee3ece75132fb540a5185
MD5 d707f17230f34b15741a26d94c4e90ca
BLAKE2b-256 39849ad2a3731dc997238e06723565fe9561306cfcda6e60c2d72c0e296f7c08

See more details on using hashes here.

Provenance

The following attestation bundles were made for sqlalchemy_dqlite-0.1.2-py3-none-any.whl:

Publisher: publish-to-pypi.yml on letsdiscodev/sqlalchemy-dqlite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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