Skip to content

Commit

Permalink
added comment to WithLazyTx option
Browse files Browse the repository at this point in the history
  • Loading branch information
asmyasnikov committed Sep 19, 2024
1 parent 18e9f8b commit b15aea6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,12 @@ func WithSessionPoolSessionUsageLimit(sessionUsageLimit uint64) Option {
}
}

// WithLazyTx enables lazy transactions in query service client
//
// Lazy transaction means that begin call will be noop and first execute creates interactive transaction with given
// transaction settings
//
// Experimental: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#experimental
func WithLazyTx(lazyTx bool) Option {
return func(ctx context.Context, d *Driver) error {
d.queryOptions = append(d.queryOptions, queryConfig.WithLazyTx(lazyTx))
Expand Down

0 comments on commit b15aea6

Please sign in to comment.