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 WithCallOptions(opts ...grpc.CallOption) callOptions
- func WithCommit() txCommitOption
- func WithIdempotent() idempotentOption
- func WithLabel(lbl string) labelOption
- func WithParameters(parameters *params.Parameters) *parametersOption
- func WithTrace(t *trace.Query) traceOption
- func WithTxControl(txControl *tx.Control) txControlOption
- func WithTxSettings(txSettings tx.Settings) doTxSettingsOption
- type DoOption
- type DoTxOption
- type ExecMode
- type Execute
- type ExecuteOption
- type StatsMode
- type Syntax
- 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 WithCallOptions ¶
func WithCallOptions(opts ...grpc.CallOption) callOptions
func WithCommit ¶
func WithCommit() txCommitOption
func WithIdempotent ¶
func WithIdempotent() idempotentOption
func WithParameters ¶
func WithParameters(parameters *params.Parameters) *parametersOption
func WithTxControl ¶
func WithTxSettings ¶
Types ¶
type DoTxOption ¶
type DoTxOption interface {
// contains filtered or unexported methods
}
type ExecMode ¶
func WithExecMode ¶
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 StatsMode ¶
func WithStatsMode ¶
type TxExecuteOption ¶
type TxExecuteOption interface {
// contains filtered or unexported methods
}
Click to show internal directories.
Click to hide internal directories.