Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ops ¶
type Ops struct {
// contains filtered or unexported fields
}
Ops implements SQL transaction operations.
func (*Ops) Exec ¶
func (o *Ops) Exec(ctx context.Context, req *sql_rpc.SqlExecRequest) (*sql_rpc.SqlExecResponse, error)
Exec executes a SQL statement.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store wraps a SQL store in a RPC service.
func (*Store) GetSqlOpsMux ¶
func (s *Store) GetSqlOpsMux(ctx context.Context, txID string, released func()) (srpc.Invoker, func(), error)
GetSqlOpsMux returns the SqlOpsServer mux for the given transaction id.
func (*Store) SqlTransaction ¶
func (s *Store) SqlTransaction(strm sql_rpc.SRPCSql_SqlTransactionStream) error
SqlTransaction starts and manages a SQL transaction.
func (*Store) SqlTransactionRpc ¶
func (s *Store) SqlTransactionRpc(strm sql_rpc.SRPCSql_SqlTransactionRpcStream) error
SqlTransactionRpc proxies a RPC to the SqlOps service for the transaction.
Click to show internal directories.
Click to hide internal directories.