sqlalchemy-cubrid¶
SQLAlchemy 2.0 dialect for CUBRID, built for production-ready Core and ORM workloads.
Key features¶
- Native SQLAlchemy 2.0 dialect support with statement caching
- CUBRID-specific DML support including
ON DUPLICATE KEY UPDATE,MERGE, andREPLACE INTO - Complete type system coverage and schema reflection support
- Built-in Alembic migration integration for CUBRID
- Dual driver support: C-extension (
cubrid://) and pure Python (cubrid+pycubrid://)
Quick install¶
Pure Python driver option:
Minimal example¶
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"))
row = result.fetchone()
print(row[0])