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 ¶
This section is empty.
Types ¶
type B ¶
type B interface {
// Type returns the bindtype for a given database given a drivername.
Type(driverName string) int
// Driver sets the BindType for driverName to bindType.
Driver(driverName string, bindType int)
// Rebind a query from the default bindtype (QUESTION) to the target bindtype.
Rebind(bindType int, query string) string
// Experimental implementation of Rebind which uses a bytes.Buffer. The code is
// much simpler and should be more resistant to odd unicode, but it is twice as
// slow. Kept here for benchmarking purposes and to possibly replace Rebind if
// problems arise with its somewhat naive handling of unicode.
RebindBuff(bindType int, query string) string
// In expands slice values in args, returning the modified query string
// and a new arg list that can be executed by a database. The `query` should
// use the `?` bindVar. The return value uses the `?` bindVar.
In(query string, args ...any) (string, []any, error)
// contains filtered or unexported methods
}
Click to show internal directories.
Click to hide internal directories.