shared

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: MIT, MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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