isolation

package
v3.35.2-rc0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

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) (txControl table.TxOption, 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL