From b15aea67e8a5d4f6d9380e34cf4f9e5a59e408c9 Mon Sep 17 00:00:00 2001 From: Aleksey Myasnikov Date: Thu, 19 Sep 2024 21:30:00 +0300 Subject: [PATCH] added comment to WithLazyTx option --- options.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/options.go b/options.go index cbe4143de..095cd9c05 100644 --- a/options.go +++ b/options.go @@ -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))