CUBRID dialect for SQLAlchemy
Project description
sqlalchemy-cubrid
CUBRID dialect for SQLAlchemy 2.0+.
Requirements
- Python 3.10+
- SQLAlchemy 2.0 – 2.1
- CUBRID-Python driver
Install
pip install sqlalchemy-cubrid
Quick Start
from sqlalchemy import create_engine, text
engine = create_engine("cubrid://dba:password@localhost:33000/demodb")
with engine.connect() as conn:
result = conn.execute(text("SELECT 1"))
print(result.scalar())
Features
- Full SQLAlchemy 2.0 dialect with statement caching
- Complete type system — numeric, string, date/time, bit, LOB, and collection types
- SQL compilation — SELECT, JOIN, CAST, LIMIT/OFFSET, subqueries, CTEs, window functions
- DML extensions —
ON DUPLICATE KEY UPDATE,MERGE,FOR UPDATE,TRUNCATE - DDL support —
COMMENT,IF NOT EXISTS/IF EXISTS,AUTO_INCREMENT - Schema reflection — tables, views, columns, PKs, FKs, indexes, unique constraints, comments
- Alembic migrations via
CubridImpl(auto-discovered entry point) - All 6 CUBRID isolation levels
- PEP 561 typed package
Documentation
| Guide | Description |
|---|---|
| Connection | Connection strings, URL format, driver setup, troubleshooting |
| Type Mapping | Full type mapping, CUBRID-specific types, collection types |
| DML Extensions | ON DUPLICATE KEY UPDATE, MERGE, GROUP_CONCAT, TRUNCATE, index hints |
| Isolation Levels | All 6 CUBRID isolation levels, configuration, comparison |
| Alembic Migrations | Setup, configuration, limitations, batch workarounds |
| Feature Support | Full comparison with MySQL, PostgreSQL, and SQLite |
| Development | Dev setup, testing, Docker, coverage, CI/CD |
Compatibility
| Python 3.10 | Python 3.11 | Python 3.12 | Python 3.13 | |
|---|---|---|---|---|
| Offline Tests | ✅ | ✅ | ✅ | ✅ |
| CUBRID 11.4 | ✅ | — | ✅ | — |
| CUBRID 11.2 | ✅ | — | ✅ | — |
| CUBRID 11.0 | ✅ | — | ✅ | — |
| CUBRID 10.2 | ✅ | — | ✅ | — |
Contributing
See CONTRIBUTING.md for guidelines. See docs/DEVELOPMENT.md for dev setup.
Security
See SECURITY.md.
License
MIT — see LICENSE.
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
sqlalchemy_cubrid-1.2.2.tar.gz
(41.7 kB
view details)
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_cubrid-1.2.2.tar.gz.
File metadata
- Download URL: sqlalchemy_cubrid-1.2.2.tar.gz
- Upload date:
- Size: 41.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36d239d2c93163f19abc20c0e8d55412a3b5fa894e3018d6f268b41fbb8a6b95
|
|
| MD5 |
92e5900642c19ee68613a5ce3ea78067
|
|
| BLAKE2b-256 |
3a4d70742e1dc9dcd6d0542526a044a917ad1d26b9ae9a338b6543c095186b2e
|
File details
Details for the file sqlalchemy_cubrid-1.2.2-py3-none-any.whl.
File metadata
- Download URL: sqlalchemy_cubrid-1.2.2-py3-none-any.whl
- Upload date:
- Size: 25.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49bbe7ce3e83fb4f0aed7f302c6a2371e05ba4b0ce6fe63087da022e8aa80164
|
|
| MD5 |
67099437392503333e11e7e65afc9e9a
|
|
| BLAKE2b-256 |
017dada3f50c9a3e72b3eaec7ede5c77a0a005f23409db18d028a33153c96874
|