@@ -212,7 +212,17 @@ type Session interface {
212212 ) error
213213}
214214
215- type TransactionSettings = options.TransactionSettings
215+ type TransactionSettings struct {
216+ settings Ydb_Table.TransactionSettings
217+ }
218+
219+ func (t * TransactionSettings ) Settings () * Ydb_Table.TransactionSettings {
220+ if t == nil {
221+ return nil
222+ }
223+
224+ return & t .settings
225+ }
216226
217227// Explanation is a result of Explain calls.
218228type Explanation struct {
@@ -305,7 +315,7 @@ func TxSettings(opts ...TxOption) *TransactionSettings {
305315 s := new (TransactionSettings )
306316 for _ , opt := range opts {
307317 if opt != nil {
308- opt ((* txDesc )(s . Settings () ))
318+ opt ((* txDesc )(& s . settings ))
309319 }
310320 }
311321
@@ -317,7 +327,7 @@ func BeginTx(opts ...TxOption) TxControlOption {
317327 return func (d * txControlDesc ) {
318328 s := TxSettings (opts ... )
319329 d .TxSelector = & Ydb_Table.TransactionControl_BeginTx {
320- BeginTx : s . Settings () ,
330+ BeginTx : & s . settings ,
321331 }
322332 }
323333}
@@ -488,7 +498,14 @@ func ValueParam(name string, v value.Value) ParameterOption {
488498 return params .Named (name , v )
489499}
490500
491- type Options = options.TableOptions
501+ type Options struct {
502+ Label string
503+ Idempotent bool
504+ TxSettings * TransactionSettings
505+ TxCommitOptions []options.CommitTransactionOption
506+ RetryOptions []retry.Option
507+ Trace * trace.Table
508+ }
492509
493510type Option interface {
494511 ApplyTableOption (opts * Options )
0 commit comments