context

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const AdditionalHeadersContextKey = ContextKey("additionalHeaders")
View Source
const AsyncContextKey = ContextKey("async")
View Source
const PreparedStatementsStyleContextKey = ContextKey("preparedStatementsStyle")
View Source
const StreamingContextKey = ContextKey("streaming")

Variables

This section is empty.

Functions

func GetAdditionalHeaders

func GetAdditionalHeaders(ctx context.Context) (map[string]string, bool)

func IsAsync added in v1.11.0

func IsAsync(ctx context.Context) bool

func IsStreaming

func IsStreaming(ctx context.Context) bool

func WithAdditionalHeaders

func WithAdditionalHeaders(ctx context.Context, headers map[string]string) context.Context

func WithAsync added in v1.11.0

func WithAsync(ctx context.Context) context.Context

func WithPreparedStatementsStyle added in v1.9.0

func WithPreparedStatementsStyle(ctx context.Context, style PreparedStatementsStyle) context.Context

func WithStreaming

func WithStreaming(ctx context.Context) context.Context

Types

type ContextKey

type ContextKey string

type PreparedStatementsStyle added in v1.9.0

type PreparedStatementsStyle int
const (
	PreparedStatementsStyleNative PreparedStatementsStyle = iota
	PreparedStatementsStyleFbNumeric
)

func GetPreparedStatementsStyle added in v1.9.0

func GetPreparedStatementsStyle(ctx context.Context) PreparedStatementsStyle

Jump to

Keyboard shortcuts

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