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

Uploaded Python 3

File details

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

File metadata

  • Download URL: sqlalchemy_dqlite-0.1.1.tar.gz
  • Upload date:
  • Size: 8.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.1.tar.gz
Algorithm Hash digest
SHA256 0af4862c40457a147b55f92ee6142410c6cbba1e37f104ae104751dee43e7bec
MD5 76e71ff1d258681957c6ffbc8bc846f0
BLAKE2b-256 1d7578fae1a08664a9288ef9526412f2dc71cbf00078ace9a507a7acdca9272b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for sqlalchemy_dqlite-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 99903286db4f7cb56c58bd86dc5adb6354d8ce38f17012d3a1d44a28a752e8c6
MD5 5f11800572345135df8f9f52822c8497
BLAKE2b-256 a194050a16c19a1e23b1c1e7f6a65b58c81b34819ba74375036a7d030cdbc09f

See more details on using hashes here.

Provenance

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