Documentation ¶
Index ¶
- Variables
- func NewMaterializedResultSet(columnNames []string, columnTypes []types.Type, rows []query.Row) *materializedResultSet
- func NewRow(ctx context.Context, columns []*Ydb.Column, v *Ydb.Value, t *trace.Query) (*row, error)
- type Client
- func (c *Client) Close(ctx context.Context) error
- func (c *Client) Do(ctx context.Context, op query.Operation, opts ...options.DoOption) (finalErr error)
- func (c *Client) DoTx(ctx context.Context, op query.TxOperation, opts ...options.DoTxOption) (finalErr error)
- func (c *Client) Execute(ctx context.Context, q string, opts ...options.ExecuteOption) (_ query.Result, err error)
- func (c *Client) ReadResultSet(ctx context.Context, q string, opts ...options.ExecuteOption) (rs query.ResultSet, err error)
- func (c *Client) ReadRow(ctx context.Context, q string, opts ...options.ExecuteOption) (row query.Row, err error)
- func (c *Client) Stats() *stats.Stats
- type Session
- func (s *Session) Begin(ctx context.Context, txSettings query.TransactionSettings) (_ query.Transaction, err error)
- func (s *Session) Close(ctx context.Context) (err error)
- func (s *Session) Execute(ctx context.Context, q string, opts ...options.ExecuteOption) (_ query.Transaction, _ query.Result, err error)
- func (s *Session) ID() string
- func (s *Session) IsAlive() bool
- func (s *Session) NodeID() int64
- func (s *Session) ReadResultSet(ctx context.Context, q string, opts ...options.ExecuteOption) (rs query.ResultSet, _ error)
- func (s *Session) ReadRow(ctx context.Context, q string, opts ...options.ExecuteOption) (row query.Row, _ error)
- func (s *Session) Status() string
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotImplemented = errors.New("not implemented yet")
)
Functions ¶
func NewMaterializedResultSet ¶ added in v3.69.0
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DoTx ¶
func (c *Client) DoTx(ctx context.Context, op query.TxOperation, opts ...options.DoTxOption) (finalErr 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
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) ReadResultSet ¶ added in v3.69.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.