We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18e9f8b commit b15aea6Copy full SHA for b15aea6
options.go
@@ -498,6 +498,12 @@ func WithSessionPoolSessionUsageLimit(sessionUsageLimit uint64) Option {
498
}
499
500
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
507
func WithLazyTx(lazyTx bool) Option {
508
return func(ctx context.Context, d *Driver) error {
509
d.queryOptions = append(d.queryOptions, queryConfig.WithLazyTx(lazyTx))
0 commit comments