Altibase dialect for SQLAlchemy
Project description
sqlalchemy-pyaltibase
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
924707d4722a1ca544cc6cc0f2f2a29a15934b507977fbc77f2821a57c095503
|
|
| MD5 |
a8be7d2a11648309eae8c54093ea8871
|
|
| BLAKE2b-256 |
7012c94f6f7ccb0d2395632cc0c8b3a07e644a8d5dff4b6576bf7375fd02f120
|
Provenance
The following attestation bundles were made for sqlalchemy_pyaltibase-0.3.0.tar.gz:
Publisher:
publish-pypi.yml on yeongseon/sqlalchemy-pyaltibase
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sqlalchemy_pyaltibase-0.3.0.tar.gz -
Subject digest:
924707d4722a1ca544cc6cc0f2f2a29a15934b507977fbc77f2821a57c095503 - Sigstore transparency entry: 1339322889
- Sigstore integration time:
-
Permalink:
yeongseon/sqlalchemy-pyaltibase@b1a6f01d688b321644bddfa43091c1194604dee6 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/yeongseon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@b1a6f01d688b321644bddfa43091c1194604dee6 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file sqlalchemy_pyaltibase-0.3.0-py3-none-any.whl.
File metadata
- Download URL: sqlalchemy_pyaltibase-0.3.0-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b54942e9d9cce3d6eedaf7dfe5b759aa6e74e6528798f1e7aab4185f31dd9b9
|
|
| MD5 |
fa892c208607af2e4ef996b0bc8b580c
|
|
| BLAKE2b-256 |
85bfd8cfa1db067edfe7dee8e21cfe294e38d47bb42e5abd87d35e263e44f2c6
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sqlalchemy_pyaltibase-0.3.0-py3-none-any.whl -
Subject digest:
2b54942e9d9cce3d6eedaf7dfe5b759aa6e74e6528798f1e7aab4185f31dd9b9 - Sigstore transparency entry: 1339322895
- Sigstore integration time:
-
Permalink:
yeongseon/sqlalchemy-pyaltibase@b1a6f01d688b321644bddfa43091c1194604dee6 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/yeongseon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@b1a6f01d688b321644bddfa43091c1194604dee6 -
Trigger Event:
workflow_dispatch
-
Statement type: