query

package
v0.0.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoSession = errors.New("no session")
	ErrExec      = errors.New("exec failed")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Transport     grpc.ClientConnInterface
	Logger        logger.Logger
	CreateTimeout time.Duration
	PoolSize      uint
}

type Service

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

func NewService

func NewService(runCtx context.Context, cfg Config) *Service

func (*Service) AcquireSession

func (svc *Service) AcquireSession(ctx context.Context) (*session.Session, func(), error)

func (*Service) Close

func (svc *Service) Close() error

func (*Service) Exec

Exec provides low-level single query execution.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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