Expand description
Transaction scope for query execution instances.
- Session-level
SessionTransactionControllerholds explicit transaction handles and manages state transitions. TransactionScopeis the execution view for a single query: it carries pure metadata (transaction identity, mode, rollback flag).- Begin/Commit/Rollback commands trigger real state transitions through the controller, not fake text results.
- Client disconnect rolls back auto-commit transactions owned by the instance, but does NOT end the session’s explicit transaction.
The SessionTransactionController is the single state machine that all
transaction paths (SQL text, plan-based TxnOperator, embedded) flow through.
The API layer (GraphService) owns the TransactionManager reference and
performs the actual begin/commit/rollback; the controller tracks state.
Structs§
- Session
Transaction Controller - Session-level controller for explicit transactions.
- Transaction
Command Result - Result of a transaction command (BEGIN, COMMIT, ROLLBACK).
- Transaction
Id - Transaction ID type. Defined once here; do NOT duplicate in other modules.
Enums§
- Cancel
Reason - Typed reason for query cancellation.
- Transaction
Scope - The transaction scope for a single query execution.
- Transaction
State - Transaction state for session-level explicit transactions.