sql_rpc_server

package
v0.56.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

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 NewOps

func NewOps(ops hydra_sql.SqlOps) *Ops

NewOps constructs a new SqlOps service.

func (*Ops) Exec

Exec executes a SQL statement.

func (*Ops) Query

func (o *Ops) Query(strm sql_rpc.SRPCSqlOps_QueryStream) error

Query executes a SQL query with explicit row iteration control.

type Store

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

Store wraps a SQL store in a RPC service.

func NewStore

func NewStore(store hydra_sql.SqlStore) *Store

NewStore constructs a new Store.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL