Skip to main content

Tibero dialect for SQLAlchemy

Project description

sqlalchemy-pytibero

PyPI version CI license docs

SQLAlchemy 2.0 dialect for the Tibero database, backed by pytibero.

Installation

pip install sqlalchemy-pytibero

With DB-API dependency:

pip install "sqlalchemy-pytibero[pytibero]"

Quick Start

from sqlalchemy import create_engine, text

engine = create_engine("tibero://tibero:password@localhost:8629/TESTDB")

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 = tibero://tibero:password@localhost:8629/TESTDB
alembic upgrade head

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

Architecture

flowchart TD
    app["Application"] --> sa["SQLAlchemy Core/ORM"]
    sa --> dialect["TiberoDialect"]
    dialect --> dbapi["pytibero"]
    dbapi --> server["Tibero 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_pytibero-0.3.0.tar.gz (20.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_pytibero-0.3.0-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sqlalchemy_pytibero-0.3.0.tar.gz
Algorithm Hash digest
SHA256 7887e105df42aff9143465835723fa40bd76f99f43553dcc0b7a222597232bbf
MD5 a7ff6b65514edccef3a714813ba7c888
BLAKE2b-256 203a2ae8de857e825dd9a9637c75c30e07fb64f29150e34914a8c919545f87f2

See more details on using hashes here.

Provenance

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

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

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

File metadata

File hashes

Hashes for sqlalchemy_pytibero-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b77010086e07047ea7599e692099317c2f1d6432c24db400a5a196a44835b500
MD5 f7aada774e3494036c87f5d6fd35d609
BLAKE2b-256 3bdcd524d8d1715165f572acf8e86c1d5aa761da42bfdcfe88fa24bf646b5fb6

See more details on using hashes here.

Provenance

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

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

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