handler

package
v0.0.0-...-49f428d Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPool

func NewPool() *defaultPool

Types

type Handler

type Handler interface {
	Prepare(ctx context.Context, sql string) (statement.Statement, error)

	Query(ctx context.Context, stmt string, params ...interface{}) (resultset.Result, error)

	Execute(ctx context.Context, stmt string, params ...interface{}) (resultset.Result, error)
}

type StatementPool

type StatementPool interface {
	Get(h Handler, sql string) (statement.Statement, bool)

	Put(h Handler, sql string, stmt statement.Statement)

	Purge(h Handler)

	PurgeAll()
}

Jump to

Keyboard shortcuts

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