Skip to content

feat: TransactionCapable as strict alias over u16 for SQL_TXN_CAPABLE values - #112

Merged
pacman82 merged 1 commit into
pacman82:mainfrom
alfhellmund:feat/transaction-capable
Nov 7, 2026
Merged

pacman82 merged 1 commit into
pacman82:mainfrom
alfhellmund:feat/transaction-capable

Conversation

@alfhellmund

Copy link
Copy Markdown
Contributor

Adds TransactionCapable, a strict alias over u16 for the values SQLGetInfo reports for SQL_TXN_CAPABLE (SQL_TC_NONE, SQL_TC_DML, SQL_TC_ALL, SQL_TC_DDL_COMMIT, SQL_TC_DDL_IGNORE), following the pattern of ConnectionAttribute.

This came out of the review of pacman82/odbc-api#960: odbc-api would read the value via SQLGetInfo and return this type, instead of defining its own enum.

cargo fmt --check, cargo clippy --all-targets -- -D warnings, cargo doc (with -D warnings) and cargo test --lib pass locally.

🤖 Generated with Claude Code

… values

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pacman82
pacman82 merged commit 69a3e0c into pacman82:main Nov 7, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants