connector

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector interface {
	driver.Connector

	Close(ctx context.Context) error
}

func New

func New(owner Driver, opts ...Option) Connector

type Driver

type Driver interface {
	driver.Driver

	Done() <-chan struct{}
}

type Option

type Option func(*connector)

func With

func With(options ...config.Option) Option

func WithAccessTokenCredentials

func WithAccessTokenCredentials(accessToken string) Option

func WithAnonymousCredentials

func WithAnonymousCredentials() Option

func WithConnectionString

func WithConnectionString(connection string) Option

func WithCredentials

func WithCredentials(creds credentials.Credentials) Option

func WithDatabase

func WithDatabase(database string) Option

func WithDefaultExecDataQueryOption

func WithDefaultExecDataQueryOption(opts ...options.ExecuteDataQueryOption) Option

func WithDefaultExecScanQueryOption

func WithDefaultExecScanQueryOption(opts ...options.ExecuteScanQueryOption) Option

func WithDiscoveryInterval

func WithDiscoveryInterval(discoveryInterval time.Duration) Option

func WithEndpoint

func WithEndpoint(endpoint string) Option

func WithTraceDriver

func WithTraceDriver(t trace.Driver) Option

func WithTraceTable

func WithTraceTable(t trace.Table) Option

Jump to

Keyboard shortcuts

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