options

package
v3.81.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

Variables

This section is empty.

Functions

func ExecuteSettings

func ExecuteSettings(opts ...Execute) *executeSettings

func ParseDoOpts

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

func ParseDoTxOpts

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

func WithCallOptions

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

func WithCommit

func WithCommit() txCommitOption

func WithExecMode

func WithExecMode(mode ExecMode) execModeOption

func WithParameters

func WithParameters(parameters *params.Parameters) parametersOption

func WithStatsMode

func WithStatsMode(mode StatsMode, callback func(stats.QueryStats)) statsModeOption

func WithSyntax

func WithSyntax(syntax Syntax) syntaxOption

func WithTxControl

func WithTxControl(txControl *tx.Control) *txControlOption

func WithTxSettings

func WithTxSettings(txSettings tx.Settings) doTxSettingsOption

Types

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

type Execute

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

Execute is an interface for execute method options

type ExecuteNoTx added in v3.78.0

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

type ExecuteScriptOperation added in v3.77.0

type ExecuteScriptOperation struct {
	ID            string
	ConsumedUnits float64
	Metadata      *MetadataExecuteQuery
}

type FetchScriptOption added in v3.77.0

type FetchScriptOption func(request *FetchScriptResultsRequest)

func WithFetchToken added in v3.77.0

func WithFetchToken(fetchToken string) FetchScriptOption

func WithResultSetIndex added in v3.77.0

func WithResultSetIndex(resultSetIndex int64) FetchScriptOption

func WithRowsLimit added in v3.77.0

func WithRowsLimit(rowsLimit int64) FetchScriptOption

type FetchScriptResult added in v3.77.0

type FetchScriptResult struct {
	ResultSetIndex int64
	ResultSet      result.Set
	NextToken      string
}

type FetchScriptResultsRequest added in v3.77.0

type FetchScriptResultsRequest struct {
	Ydb_Query.FetchScriptResultsRequest

	Trace *trace.Query
}

type MetadataExecuteQuery added in v3.77.1

type MetadataExecuteQuery struct {
	ID     string
	Script struct {
		Syntax Syntax
		Query  string
	}
	Mode           ExecMode
	Stats          stats.QueryStats
	ResultSetsMeta []struct {
		Columns []struct {
			Name string
			Type types.Type
		}
	}
}

func ToMetadataExecuteQuery added in v3.77.1

func ToMetadataExecuteQuery(metadata *anypb.Any) *MetadataExecuteQuery

type RetryOptionsOption added in v3.74.0

type RetryOptionsOption []retry.Option

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

type StatsMode

type StatsMode Ydb_Query.StatsMode

type Syntax

type Syntax Ydb_Query.Syntax

type TraceOption added in v3.74.0

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

func WithTrace

func WithTrace(t *trace.Query) TraceOption

Jump to

Keyboard shortcuts

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