Skip to content

Commit b15aea6

Browse files
committed
added comment to WithLazyTx option
1 parent 18e9f8b commit b15aea6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

options.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,12 @@ func WithSessionPoolSessionUsageLimit(sessionUsageLimit uint64) Option {
498498
}
499499
}
500500

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

0 commit comments

Comments
 (0)