5.27.0 — 2026-11-02¶
← 5.26.1 | 5.28.0 → | ↑ 5.x series
Added¶
Adapters - SQLAlchemy¶
- Savepoints for Nested Atomic Calls -
sqlalchemy_atomicand the PostgreSQL, MySQL and SQLite shortcuts acceptsavepoint=False.savepoint=Trueruns a nested call in a savepoint; a caught failure rolls back only that savepoint and the outer transaction stays committable- Savepoints stack: a failure at one level rolls back that level only, and a parent level can catch it and continue
- Default
savepoint=Falsekeeps the 5.26.1 behavior: a nested failure rolls back the whole transaction and the outer block raisesDatabaseTransactionError - A
savepoint=Falsecall anywhere in the chain still aborts the whole transaction, even inside a savepoint - StarRocks has no
SAVEPOINTsupport:starrocks_sqlalchemy_atomictakes nosavepointargument, andsqlalchemy_atomic("starrocks", savepoint=True)raisesInvalidArgumentError
Tests¶
Tests - SQLAlchemy¶
- Nested Atomic Scenarios - Default rollback, savepoint isolation with one passing and one failing inner call, multilevel savepoints, mixed savepoint/default chains, an async savepoint scenario and the StarRocks rejection.