Documentation ¶
Index ¶
- Variables
- func MaterializedResultSet(index int, columnNames []string, columnTypes []types.Type, rows []query.Row) *materializedResultSet
- 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) Exec(ctx context.Context, q string, opts ...options.Execute) (finalErr error)
- func (c *Client) ExecuteScript(ctx context.Context, q string, ttl time.Duration, opts ...options.Execute) (op *options.ExecuteScriptOperation, err error)
- func (c *Client) FetchScriptResults(ctx context.Context, opID string, opts ...options.FetchScriptOption) (*options.FetchScriptResult, error)
- func (c *Client) Query(ctx context.Context, q string, opts ...options.Execute) (r query.Result, err error)
- func (c *Client) QueryResultSet(ctx context.Context, q string, opts ...options.Execute) (rs result.ClosableResultSet, finalErr error)
- func (c *Client) QueryRow(ctx context.Context, q string, opts ...options.Execute) (_ query.Row, finalErr error)
- type Row
- type Session
- func (s *Session) Begin(ctx context.Context, txSettings query.TransactionSettings) (tx query.Transaction, finalErr error)
- func (s *Session) Exec(ctx context.Context, q string, opts ...options.Execute) (finalErr error)
- func (s *Session) Query(ctx context.Context, q string, opts ...options.Execute) (_ query.Result, finalErr error)
- func (s *Session) QueryResultSet(ctx context.Context, q string, opts ...options.Execute) (rs result.ClosableResultSet, finalErr error)
- func (s *Session) QueryRow(ctx context.Context, q string, opts ...options.Execute) (_ query.Row, finalErr error)
- type Transaction
- func (tx *Transaction) CommitTx(ctx context.Context) (finalErr error)
- func (tx *Transaction) Exec(ctx context.Context, q string, opts ...options.Execute) (finalErr error)
- func (tx *Transaction) OnBeforeCommit(f baseTx.OnTransactionBeforeCommit)
- func (tx *Transaction) OnCompleted(f baseTx.OnTransactionCompletedFunc)
- func (tx *Transaction) Query(ctx context.Context, q string, opts ...options.Execute) (_ query.Result, finalErr error)
- func (tx *Transaction) QueryResultSet(ctx context.Context, q string, opts ...options.Execute) (rs result.ClosableResultSet, finalErr error)
- func (tx *Transaction) QueryRow(ctx context.Context, q string, opts ...options.Execute) (row query.Row, finalErr error)
- func (tx *Transaction) Rollback(ctx context.Context) (finalErr error)
- func (tx *Transaction) SessionID() string
- func (tx *Transaction) UnLazy(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
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) ExecuteScript ¶ added in v3.77.0
func (*Client) FetchScriptResults ¶ added in v3.77.0
func (c *Client) FetchScriptResults(ctx context.Context, opID string, opts ...options.FetchScriptOption, ) (*options.FetchScriptResult, error)
type Row ¶ added in v3.80.8
type Row struct {
// contains filtered or unexported fields
}
func (Row) ScanNamed ¶ added in v3.80.8
func (r Row) ScanNamed(dst ...scanner.NamedDestination) (err error)
func (Row) ScanStruct ¶ added in v3.80.8
func (r Row) ScanStruct(dst interface{}, opts ...scanner.ScanStructOption) (err error)
type Session ¶
func CreateSession ¶ added in v3.89.6
func (*Session) Begin ¶
func (s *Session) Begin( ctx context.Context, txSettings query.TransactionSettings, ) ( tx query.Transaction, finalErr error, )
func (*Session) QueryResultSet ¶ added in v3.77.0
type Transaction ¶ added in v3.76.2
func (*Transaction) CommitTx ¶ added in v3.76.2
func (tx *Transaction) CommitTx(ctx context.Context) (finalErr error)
func (*Transaction) OnBeforeCommit ¶ added in v3.81.0
func (tx *Transaction) OnBeforeCommit(f baseTx.OnTransactionBeforeCommit)
func (*Transaction) OnCompleted ¶ added in v3.76.4
func (tx *Transaction) OnCompleted(f baseTx.OnTransactionCompletedFunc)
func (*Transaction) QueryResultSet ¶ added in v3.77.0
func (tx *Transaction) QueryResultSet( ctx context.Context, q string, opts ...options.Execute, ) (rs result.ClosableResultSet, finalErr error)
func (*Transaction) Rollback ¶ added in v3.76.2
func (tx *Transaction) Rollback(ctx context.Context) (finalErr error)
func (*Transaction) SessionID ¶ added in v3.76.4
func (tx *Transaction) SessionID() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.