Documentation ¶
Index ¶
- Constants
- func ParseDoOpts(t *trace.Query, opts ...DoOption) (s *doSettings)
- func ParseDoTxOpts(t *trace.Query, opts ...DoTxOption) (s *doTxSettings)
- func TxExecuteSettings(id string, opts ...TxExecuteOption) (settings *txExecuteSettings)
- func WithCommit() txCommitOption
- func WithIdempotent() retryOptionsOption
- func WithLabel(lbl string) retryOptionsOption
- func WithRetryBudget(b budget.Budget) retryOptionsOption
- func WithTrace(t *trace.Query) traceOption
- func WithTxSettings(txSettings tx.Settings) doTxSettingsOption
- type CallOptions
- type DoOption
- type DoTxOption
- type ExecMode
- type ExecModeOption
- type Execute
- type ExecuteOption
- type ParametersOption
- type StatsMode
- type StatsModeOption
- type Syntax
- type SyntaxOption
- type TxControlOption
- type TxExecuteOption
Constants ¶
View Source
const ( SyntaxYQL = Syntax(Ydb_Query.Syntax_SYNTAX_YQL_V1) SyntaxPostgreSQL = Syntax(Ydb_Query.Syntax_SYNTAX_PG) )
View Source
const ( ExecModeParse = ExecMode(Ydb_Query.ExecMode_EXEC_MODE_PARSE) ExecModeValidate = ExecMode(Ydb_Query.ExecMode_EXEC_MODE_VALIDATE) ExecModeExplain = ExecMode(Ydb_Query.ExecMode_EXEC_MODE_EXPLAIN) ExecModeExecute = ExecMode(Ydb_Query.ExecMode_EXEC_MODE_EXECUTE) )
View Source
const ( StatsModeBasic = StatsMode(Ydb_Query.StatsMode_STATS_MODE_BASIC) StatsModeNone = StatsMode(Ydb_Query.StatsMode_STATS_MODE_NONE) StatsModeFull = StatsMode(Ydb_Query.StatsMode_STATS_MODE_FULL) StatsModeProfile = StatsMode(Ydb_Query.StatsMode_STATS_MODE_PROFILE) )
Variables ¶
This section is empty.
Functions ¶
func ParseDoOpts ¶
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 WithRetryBudget ¶ added in v3.66.0
func WithTxSettings ¶
Types ¶
type CallOptions ¶ added in v3.59.0
type CallOptions []grpc.CallOption
func WithCallOptions ¶
func WithCallOptions(opts ...grpc.CallOption) CallOptions
type DoTxOption ¶
type DoTxOption interface {
// contains filtered or unexported methods
}
type ExecMode ¶
func WithExecMode ¶
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) Params ¶
func (s *Execute) Params() *params.Parameters
func (*Execute) SetTxControl ¶
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 ¶
func WithStatsMode ¶
type StatsModeOption ¶ added in v3.59.0
type StatsModeOption = StatsMode
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
}
Click to show internal directories.
Click to hide internal directories.