Skip to main content

Altibase dialect for SQLAlchemy

Project description

sqlalchemy-pyaltibase

PyPI version CI license docs

SQLAlchemy 2.0 dialect for the Altibase database, backed by pyaltibase.

Installation

pip install sqlalchemy-pyaltibase

With DB-API dependency:

pip install "sqlalchemy-pyaltibase[pyaltibase]"

Quick Start

from sqlalchemy import create_engine, text

engine = create_engine("altibase://user:password@localhost:20300/mydb")

with engine.connect() as conn:
    value = conn.execute(text("SELECT 1 FROM DUAL")).scalar()
    print(value)

Alembic Support

This dialect includes an Alembic implementation. After installing, Alembic migrations work out of the box:

# alembic.ini
sqlalchemy.url = altibase://user:password@localhost:20300/mydb
alembic upgrade head

Note: Altibase DDL is auto-committed, so transactional_ddl = False.

Architecture

flowchart TD
    app["Application"] --> sa["SQLAlchemy Core/ORM"]
    sa --> dialect["AltibaseDialect"]
    dialect --> dbapi["pyaltibase"]
    dbapi --> server["Altibase Server"]

Development

make lint
make test

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_pyaltibase-0.3.0.tar.gz (22.3 kB view details)

Uploaded Source

Built Distribution

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

sqlalchemy_pyaltibase-0.3.0-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file sqlalchemy_pyaltibase-0.3.0.tar.gz.

File metadata

  • Download URL: sqlalchemy_pyaltibase-0.3.0.tar.gz
  • Upload date:
  • Size: 22.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sqlalchemy_pyaltibase-0.3.0.tar.gz
Algorithm Hash digest
SHA256 924707d4722a1ca544cc6cc0f2f2a29a15934b507977fbc77f2821a57c095503
MD5 a8be7d2a11648309eae8c54093ea8871
BLAKE2b-256 7012c94f6f7ccb0d2395632cc0c8b3a07e644a8d5dff4b6576bf7375fd02f120

See more details on using hashes here.

Provenance

The following attestation bundles were made for sqlalchemy_pyaltibase-0.3.0.tar.gz:

Publisher: publish-pypi.yml on yeongseon/sqlalchemy-pyaltibase

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_pyaltibase-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sqlalchemy_pyaltibase-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2b54942e9d9cce3d6eedaf7dfe5b759aa6e74e6528798f1e7aab4185f31dd9b9
MD5 fa892c208607af2e4ef996b0bc8b580c
BLAKE2b-256 85bfd8cfa1db067edfe7dee8e21cfe294e38d47bb42e5abd87d35e263e44f2c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for sqlalchemy_pyaltibase-0.3.0-py3-none-any.whl:

Publisher: publish-pypi.yml on yeongseon/sqlalchemy-pyaltibase

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