shared

package
v0.0.0-...-1956c2a Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResult

func NewResult(id, changes int64) *result

func NewRows

func NewRows(result rowsProvider) driver.Rows

Types

type Params

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

func ConvertArgs

func ConvertArgs(args []driver.NamedValue) (Params, error)

func NewParams

func NewParams(t paramsType) Params

func ParseStatementAndArgs

func ParseStatementAndArgs(sql string, args []driver.NamedValue) ([]string, []Params, error)

func (*Params) Len

func (p *Params) Len() int

func (*Params) MarshalJSON

func (p *Params) MarshalJSON() ([]byte, error)

func (*Params) Named

func (p *Params) Named() map[string]any

func (*Params) Positional

func (p *Params) Positional() []any

func (*Params) Type

func (p *Params) Type() paramsType

type ParamsInfo

type ParamsInfo struct {
	NamedParameters           []string
	PositionalParametersCount int
}

func ParseStatement

func ParseStatement(sql string) ([]string, []ParamsInfo, error)

Jump to

Keyboard shortcuts

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