Skip to content

Commit 0e6e864

Browse files
author
Roman Golov
committed
Added public types for tx.Option, options.DoOption and options.DoTxOption
1 parent f91d7ea commit 0e6e864

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
* Added public types for `tx.Option`, `options.DoOption` and `options.DoTxOption`
2+
13
## v3.73.1
24
* Changed `query.DefaultTxControl()` from `query.SerializableReadWrite()` with commit to `query.NoTx()`
35

query/client.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ type (
7777
options.DoOption
7878
options.DoTxOption
7979
}
80+
DoOption = options.DoOption
81+
DoTxOption = options.DoTxOption
8082
)
8183

8284
func WithIdempotent() bothDoAndDoTxOption {

query/transaction.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ type (
4343
}
4444
TransactionControl = tx.Control
4545
TransactionSettings = tx.Settings
46+
TransactionOption = tx.Option
4647
)
4748

4849
// BeginTx returns selector transaction control option

0 commit comments

Comments
 (0)