@@ -43,10 +43,11 @@ type (
4343 }
4444 TransactionControl = tx.Control
4545 TransactionSettings = tx.Settings
46+ TransactionOption = tx.Option
4647)
4748
4849// BeginTx returns selector transaction control option
49- func BeginTx (opts ... tx. Option ) tx.ControlOption {
50+ func BeginTx (opts ... TransactionOption ) tx.ControlOption {
5051 return tx .BeginTx (opts ... )
5152}
5253
@@ -111,26 +112,26 @@ func TxSettings(opts ...tx.Option) TransactionSettings {
111112 return opts
112113}
113114
114- func WithDefaultTxMode () tx. Option {
115+ func WithDefaultTxMode () TransactionOption {
115116 return tx .WithDefaultTxMode ()
116117}
117118
118- func WithSerializableReadWrite () tx. Option {
119+ func WithSerializableReadWrite () TransactionOption {
119120 return tx .WithSerializableReadWrite ()
120121}
121122
122- func WithSnapshotReadOnly () tx. Option {
123+ func WithSnapshotReadOnly () TransactionOption {
123124 return tx .WithSnapshotReadOnly ()
124125}
125126
126- func WithStaleReadOnly () tx. Option {
127+ func WithStaleReadOnly () TransactionOption {
127128 return tx .WithStaleReadOnly ()
128129}
129130
130131func WithInconsistentReads () tx.OnlineReadOnlyOption {
131132 return tx .WithInconsistentReads ()
132133}
133134
134- func WithOnlineReadOnly (opts ... tx.OnlineReadOnlyOption ) tx. Option {
135+ func WithOnlineReadOnly (opts ... tx.OnlineReadOnlyOption ) TransactionOption {
135136 return tx .WithOnlineReadOnly (opts ... )
136137}
0 commit comments