Transaction Context¶
transaction_context
¶
Metadata for a single transactional boundary.
TransactionContext
dataclass
¶
Metadata for a single transactional boundary.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
transaction_id
|
UUID
|
Unique identifier for the transaction. |
uuid4()
|
started_at
|
datetime
|
UTC timestamp marking when the transaction began. |
(lambda: now(utc))()
|
isolation_level
|
IsolationLevel
|
The isolation level requested for this |
READ_COMMITTED
|
metadata
|
dict[str, Any] | None
|
Arbitrary key-value pairs for cross-cutting concerns. |
None
|