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.0.tar.gz (8.5 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.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sqlalchemy_dqlite-0.1.0.tar.gz
  • Upload date:
  • Size: 8.5 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.0.tar.gz
Algorithm Hash digest
SHA256 ea3566afa0fdf27b92b6f7b3c5655f391142bdd15da1b1bd4db573a72e1eb840
MD5 8f7d2e7bd157863cefdd07af7e84c0e3
BLAKE2b-256 29bc286275a15e82b678a65ac7b2c9073f4eb491daab2b3af2b4ff4ec2c62b6c

See more details on using hashes here.

Provenance

The following attestation bundles were made for sqlalchemy_dqlite-0.1.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sqlalchemy_dqlite-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c7f6db03021d9475f88c67dddbf3178240daf5030c7145870859a62cd103aa31
MD5 dba4139947a408f189be0939fbc5a9a5
BLAKE2b-256 43f996217560b900be179558b09b8b15b2189b441e7721e403338f33a90a863f

See more details on using hashes here.

Provenance

The following attestation bundles were made for sqlalchemy_dqlite-0.1.0-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