sqlx

package
v0.0.0-...-513868c Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

View Source
const (
	UNKNOWN = iota
	QUESTION
	DOLLAR
	NAMED
	AT
)

Bindvar types supported by Rebind, BindMap and BindStruct.

Variables

This section is empty.

Functions

func BindDriver

func BindDriver(driverName string, bindType int)

BindDriver sets the BindType for driverName to bindType.

func BindType

func BindType(driverName string) int

BindType returns the bindtype for a given database given a drivername.

func CompileNamedQuery

func CompileNamedQuery(qs []byte, bindType int) (query string, names []string, err error)

CompileNamedQuery compile a NamedQuery into an unbound query (using the '?' bindvar) and a list of names.

Types

This section is empty.

Jump to

Keyboard shortcuts

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