Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromYDB ¶
func FromYDB(txSettings *table.TransactionSettings) (txOptions *sql.TxOptions, err error)
FromYDB maps table transaction settings to driver transaction options
func ToYDB ¶
func ToYDB(opts driver.TxOptions) (txSettings *table.TransactionSettings, err error)
ToYDB maps driver transaction options to ydb transaction Option or query transaction control. This caused by ydb logic that prevents start actual transaction with OnlineReadOnly mode and ReadCommitted and ReadUncommitted isolation levels should use tx_control in every query request. It returns error on unsupported options.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.