Documentation ¶
Index ¶
- Variables
- type Config
- type Session
- func (s *Session) Alive() bool
- func (s *Session) Close() error
- func (s *Session) CommitTX(ctx context.Context, txID string) error
- func (s *Session) Exec(ctx context.Context, query string, params map[string]*Ydb.TypedValue, ...) (Ydb_Query_V1.QueryService_ExecuteQueryClient, context.CancelFunc, error)
- func (s *Session) ID() uint64
- func (s *Session) RollbackTX(ctx context.Context, txID string) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Transport grpc.ClientConnInterface CreateResponse *Ydb_Query.CreateSessionResponse Logger logger.Logger }
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func CreateSession ¶
func CreateSession( ctx context.Context, qsc Ydb_Query_V1.QueryServiceClient, logger logger.Logger, timeout time.Duration, ) (*Session, error)
func (*Session) Exec ¶
func (s *Session) Exec( ctx context.Context, query string, params map[string]*Ydb.TypedValue, txControl *Ydb_Query.TransactionControl, ) (Ydb_Query_V1.QueryService_ExecuteQueryClient, context.CancelFunc, error)
Click to show internal directories.
Click to hide internal directories.