Documentation ¶
Index ¶
- func BeginTx(opts ...Option) beginTxOptions
- func WithOnlineReadOnly(opts ...OnlineReadOnlyOption) onlineReadOnlySettingsOption
- func WithTx(t tx.Identifier) txIDTxControlOption
- func WithTxID(txID string) txIDTxControlOption
- type Control
- func DefaultTxControl() *Control
- func NewControl(opts ...ControlOption) *Control
- func NoTx() *Control
- func OnlineReadOnlyTxControl(opts ...OnlineReadOnlyOption) *Control
- func SerializableReadWriteTxControl(opts ...ControlOption) *Control
- func SnapshotReadOnlyTxControl() *Control
- func StaleReadOnlyTxControl() *Control
- type ControlOption
- type OnlineReadOnlyOption
- type Option
- type Selector
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeginTx ¶
func BeginTx(opts ...Option) beginTxOptions
BeginTx returns selector transaction control option
func WithOnlineReadOnly ¶
func WithOnlineReadOnly(opts ...OnlineReadOnlyOption) onlineReadOnlySettingsOption
func WithTx ¶
func WithTx(t tx.Identifier) txIDTxControlOption
Types ¶
type Control ¶
type Control struct { Commit bool // contains filtered or unexported fields }
func DefaultTxControl ¶
func DefaultTxControl() *Control
DefaultTxControl returns default transaction control with serializable read-write isolation mode and auto-commit
func NewControl ¶
func NewControl(opts ...ControlOption) *Control
NewControl makes transaction control from given options
func OnlineReadOnlyTxControl ¶
func OnlineReadOnlyTxControl(opts ...OnlineReadOnlyOption) *Control
OnlineReadOnlyTxControl returns online read-only transaction control
func SerializableReadWriteTxControl ¶
func SerializableReadWriteTxControl(opts ...ControlOption) *Control
SerializableReadWriteTxControl returns transaction control with serializable read-write isolation mode
func SnapshotReadOnlyTxControl ¶
func SnapshotReadOnlyTxControl() *Control
SnapshotReadOnlyTxControl returns snapshot read-only transaction control
func StaleReadOnlyTxControl ¶
func StaleReadOnlyTxControl() *Control
StaleReadOnlyTxControl returns stale read-only transaction control
type ControlOption ¶
type ControlOption interface {
// contains filtered or unexported methods
}
type OnlineReadOnlyOption ¶
type OnlineReadOnlyOption interface {
// contains filtered or unexported methods
}
func WithInconsistentReads ¶
func WithInconsistentReads() OnlineReadOnlyOption
type Option ¶
type Option interface {
ApplyTxSettingsOption(a *allocator.Allocator, txSettings *Ydb_Query.TransactionSettings)
}
Transaction settings options
func WithDefaultTxMode ¶
func WithDefaultTxMode() Option
func WithSerializableReadWrite ¶
func WithSerializableReadWrite() Option
func WithSnapshotReadOnly ¶
func WithSnapshotReadOnly() Option
func WithStaleReadOnly ¶
func WithStaleReadOnly() Option
Click to show internal directories.
Click to hide internal directories.