package query

import "github.com/ydb-platform/ydb-go-sdk/v3/internal/query"

Index

Variables

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

Types

type Client

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

func New

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

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) (err error)

func (*Client) Stats

func (c *Client) Stats() *stats.Stats

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, err error,
)

func (*Session) Close

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

func (*Session) Execute

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

func (*Session) ID

func (s *Session) ID() string

func (*Session) IsAlive

func (s *Session) IsAlive() bool

func (*Session) NodeID

func (s *Session) NodeID() int64

func (*Session) Status

func (s *Session) Status() string

Source Files

client.go errors.go execute_query.go result.go result_set.go row.go session.go session_status.go transaction.go

Directories

PathSynopsis
internal/query/config
internal/query/options
internal/query/scanner
internal/query/tx
Version
v3.63.0
Published
Apr 8, 2024
Platform
js/wasm
Imports
24 packages
Last checked
3 minutes ago

Tools for package owners.