Skip to content

Commit

Permalink
Merge pull request #1471 from ydb-platform/with-lazy-tx
Browse files Browse the repository at this point in the history
* Added `ydb.WithLazyTx()` option for create lazy transactions on `query.Session.Begin` call
  • Loading branch information
asmyasnikov authored Sep 18, 2024
2 parents 2dad311 + 7ff6caa commit 6dc693a
Show file tree
Hide file tree
Showing 12 changed files with 554 additions and 121 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
* Added `ydb.WithLazyTx()` option for create lazy transactions on `query.Session.Begin` call
* Added initial experimental topic and cdc-helpers, see examples in [tests/integration/topic_helpers_test.go](https://github.com/ydb-platform/ydb-go-sdk/blob/master/tests/integration/topic_helpers_test.go)
* Added experimental `sugar.UnmarshalRows` for user unmarshaller structs in own code in go 1.23, change example for use the iterator.
* Added `ydb_go_sdk_ydb_query_pool_size_limit` metrics
* Added `ydb_go_sdk_ydb_query_pool_size_index` metrics

## v3.80.7
* Doesn't rollback a the transaction on the operation error in table service
* Fixed bug with doesn't rollback the transaction on the operation error in table service

## v3.80.6
* Fixed concurrent map writes in metrics
Expand Down
2 changes: 2 additions & 0 deletions internal/query/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,8 @@ func New(ctx context.Context, cc grpc.ClientConnInterface, cfg *config.Config) *
return nil, xerrors.WithStackTrace(err)
}

s.laztTx = cfg.LazyTx()

return s, nil
}),
),
Expand Down
Loading

0 comments on commit 6dc693a

Please sign in to comment.