options

package
v3.70.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

Variables

This section is empty.

Functions

func ParseDoOpts

func ParseDoOpts(t *trace.Query, opts ...DoOption) (s *doSettings)

func ParseDoTxOpts

func ParseDoTxOpts(t *trace.Query, opts ...DoTxOption) (s *doTxSettings)

func TxExecuteSettings

func TxExecuteSettings(id string, opts ...TxExecuteOption) (settings *txExecuteSettings)

func WithCommit

func WithCommit() txCommitOption

func WithIdempotent

func WithIdempotent() retryOptionsOption

func WithLabel

func WithLabel(lbl string) retryOptionsOption

func WithRetryBudget added in v3.66.0

func WithRetryBudget(b budget.Budget) retryOptionsOption

func WithTrace

func WithTrace(t *trace.Query) traceOption

func WithTxSettings

func WithTxSettings(txSettings tx.Settings) doTxSettingsOption

Types

type CallOptions added in v3.59.0

type CallOptions []grpc.CallOption

func WithCallOptions

func WithCallOptions(opts ...grpc.CallOption) CallOptions

type DoOption

type DoOption interface {
	// contains filtered or unexported methods
}

type DoTxOption

type DoTxOption interface {
	// contains filtered or unexported methods
}

type ExecMode

type ExecMode Ydb_Query.ExecMode

func WithExecMode

func WithExecMode(mode ExecMode) ExecMode

type ExecModeOption added in v3.59.0

type ExecModeOption = ExecMode

type Execute

type Execute struct {
	// contains filtered or unexported fields
}

func ExecuteSettings

func ExecuteSettings(opts ...ExecuteOption) (settings *Execute)

func (*Execute) CallOptions

func (s *Execute) CallOptions() []grpc.CallOption

func (*Execute) ExecMode

func (s *Execute) ExecMode() ExecMode

func (*Execute) Params

func (s *Execute) Params() *params.Parameters

func (*Execute) SetTxControl

func (s *Execute) SetTxControl(ctrl *tx.Control)

func (*Execute) StatsMode

func (s *Execute) StatsMode() StatsMode

func (*Execute) Syntax

func (s *Execute) Syntax() Syntax

func (*Execute) TxControl

func (s *Execute) TxControl() *tx.Control

type ExecuteOption

type ExecuteOption interface {
	// contains filtered or unexported methods
}

type ParametersOption added in v3.59.0

type ParametersOption params.Parameters

func WithParameters

func WithParameters(parameters *params.Parameters) ParametersOption

type StatsMode

type StatsMode Ydb_Query.StatsMode

func WithStatsMode

func WithStatsMode(mode StatsMode) StatsMode

type StatsModeOption added in v3.59.0

type StatsModeOption = StatsMode

type Syntax

type Syntax Ydb_Query.Syntax

type SyntaxOption added in v3.59.0

type SyntaxOption = Syntax

func WithSyntax

func WithSyntax(syntax Syntax) SyntaxOption

type TxControlOption added in v3.59.0

type TxControlOption struct {
	// contains filtered or unexported fields
}

func WithTxControl

func WithTxControl(txControl *tx.Control) TxControlOption

type TxExecuteOption

type TxExecuteOption interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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