x

package
v0.0.2-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataQueryOptions

func DataQueryOptions(ctx context.Context) []options.ExecuteDataQueryOption

func QueryMode

func QueryMode(ctx context.Context) mode.Type

QueryMode returns true if context contains scan query flag.

func ScanQueryOptions

func ScanQueryOptions(ctx context.Context) []options.ExecuteScanQueryOption

func ToQueryParams

func ToQueryParams(values []driver.NamedValue) *table.QueryParameters

func ToSchemeOptions

func ToSchemeOptions(values []driver.NamedValue) (opts []options.ExecuteSchemeQueryOption)

func TxControl

func TxControl(ctx context.Context, defaultTxControl *table.TransactionControl) *table.TransactionControl

func WithDataQueryOptions

func WithDataQueryOptions(ctx context.Context, opts []options.ExecuteDataQueryOption) context.Context

func WithQueryMode

func WithQueryMode(ctx context.Context, m mode.Type) context.Context

WithQueryMode returns a copy of parent context with scan query flag.

func WithScanQueryOptions

func WithScanQueryOptions(ctx context.Context, opts []options.ExecuteScanQueryOption) context.Context

func WithTxControl

func WithTxControl(ctx context.Context, txc *table.TransactionControl) context.Context

Types

type Valuer

type Valuer interface {
	types.Scanner

	// Value returns internal value
	Value() interface{}
}

Valuer based on types.Scanner interface and provides access to value

func V

func V() Valuer

V makes Valuer

Jump to

Keyboard shortcuts

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