stmt

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2025 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalid = errors.New("invalid")

ErrInvalid is returned when the packet is invalid.

Functions

This section is empty.

Types

type BindParam

type BindParam interface {
	String() (string, error)
}

BindParam is a bind parameter interface.

func NewBindParam

func NewBindParam(v any) BindParam

NewBindParam creates a new bind parameter.

type BindParams

type BindParams []BindParam

BindParams is a bind parameters.

type BindStatement

type BindStatement interface {
	Statement() (Statement, error)
}

BindStatement is a bind statement.

func NewBindStatement

func NewBindStatement(opts ...BindStatementOption) BindStatement

NewBindStatement creates a new bind statement.

type BindStatementOption

type BindStatementOption func(*bindStmt)

BindStatementOption is a bind statement option.

func WithBindStatementParams

func WithBindStatementParams(params BindParams) BindStatementOption

WithBindStatementParams sets the params.

func WithBindStatementQuery

func WithBindStatementQuery(query string) BindStatementOption

WithBindStatementQuery sets the query.

type Statement

type Statement = query.Statement

Statement is a query statement.

Jump to

Keyboard shortcuts

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