query

package
v3.74.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func NewMaterializedResultSet added in v3.69.0

func NewMaterializedResultSet(
	columnNames []string,
	columnTypes []types.Type,
	rows []query.Row,
) *materializedResultSet

func NewRow added in v3.69.0

func NewRow(ctx context.Context, columns []*Ydb.Column, v *Ydb.Value, t *trace.Query) (*row, error)

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

func (*Client) DoTx

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

func (*Client) Execute added in v3.70.0

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

func (*Client) ReadResultSet added in v3.69.0

func (c *Client) ReadResultSet(
	ctx context.Context, q string, opts ...options.ExecuteOption,
) (rs query.ResultSet, err error)

ReadResultSet is a helper which read all rows from first result set in result

func (*Client) ReadRow added in v3.69.0

func (c *Client) ReadRow(ctx context.Context, q string, opts ...options.ExecuteOption) (row query.Row, err error)

ReadRow is a helper which read only one row from first result set in result

func (*Client) Stats added in v3.59.0

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 added in v3.58.0

func (s *Session) IsAlive() bool

func (*Session) NodeID

func (s *Session) NodeID() int64

func (*Session) ReadResultSet added in v3.69.0

func (s *Session) ReadResultSet(ctx context.Context, q string, opts ...options.ExecuteOption) (
	rs query.ResultSet, _ error,
)

func (*Session) ReadRow added in v3.69.0

func (s *Session) ReadRow(ctx context.Context, q string, opts ...options.ExecuteOption) (row query.Row, _ error)

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