Detaches from the transaction and leaves resources still allocated. You must set
DisposeBehavior to CloseResources on at least one
instance to ensure there are no resource leaks when doing parallel reads.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-09 UTC."],[[["The `DisposeBehavior` enum defines how `SpannerTransaction` handles resource management upon disposal."],["`CloseResources` automatically releases resources when `Dispose` is called on a `SpannerTransaction` object."],["`Detach` allows detaching from a transaction while leaving resources allocated, requiring at least one instance set to `CloseResources` to prevent leaks."],["`ReleaseToPool` returns transactional resources to a global pool upon disposal but is incompatible with shared transactions."],["The latest version available in beta is `5.0.0-beta05`, while the latest stable release is `4.6.0`, and the current version is `3.6.0` which contains information on the `DisposeBehavior` enum."]]],[]]