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.3.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.3-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sqlalchemy_dqlite-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 0fc28cc6cc2f1823d453dbc6c5306af6bea0fd5e44d1c91d0077d8651d898702
MD5 e2c0f3a1b4f9283e23c24825734b733b
BLAKE2b-256 d906774d8622c991f98fa63a243cdac74ec5843c2e21bc6410fe60809129f34f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for sqlalchemy_dqlite-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 689be12dec3b3578bcaf9afa12913994d48afb95b1bada2945f65f1d927b12d3
MD5 ef626338079f67049502eeccccb72bbc
BLAKE2b-256 782e9c41f858a9fae341461d1e9214a00f3a6b19a33edb728e8bf0f724e25d10

See more details on using hashes here.

Provenance

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