query

package
v3.57.4 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SessionStatusUnknown = sessionStatus(iota)
	SessionStatusReady
	SessionStatusInUse
	SessionStatusClosed
)

Variables

View Source
var (
	ErrNotImplemented = errors.New("not implemented yet")
)

Functions

This section is empty.

Types

type Client

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

func New

func New(ctx context.Context, balancer balancer, config *config.Config) (*Client, error)

func (Client) Close

func (c Client) Close(ctx context.Context) error

func (Client) Do

func (c Client) Do(ctx context.Context, op query.Operation, opts ...options.DoOption) error

func (Client) DoTx

func (c Client) DoTx(ctx context.Context, op query.TxOperation, opts ...options.DoTxOption) error

type Session

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

func (*Session) Begin

func (s *Session) Begin(ctx context.Context, txSettings query.TransactionSettings) (query.Transaction, error)

func (*Session) Close

func (s *Session) Close(ctx context.Context) error

func (*Session) Execute

func (s *Session) Execute(
	ctx context.Context, q string, opts ...options.ExecuteOption,
) (query.Transaction, query.Result, error)

func (*Session) ID

func (s *Session) ID() string

func (*Session) NodeID

func (s *Session) NodeID() int64

func (*Session) Status

func (s *Session) Status() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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