MCPcopy
hub / github.com/jmoiron/sqlx / BindType

Function BindType

bind.go:43–49  ·  bind.go::BindType

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

(driverName string)

Source from the content-addressed store, hash-verified

41
42// BindType returns the bindtype for a given database given a drivername.
43func BindType(driverName string) int {
44 itype, ok := binds.Load(driverName)
45 if !ok {
46 return UNKNOWN
47 }
48 return itype.(int)
49}
50
51// BindDriver sets the BindType for driverName to bindType.
52func BindDriver(driverName string, bindType int) {

Callers 12

RebindMethod · 0.85
BindNamedMethod · 0.85
RebindMethod · 0.85
BindNamedMethod · 0.85
BenchmarkBindSpeedFunction · 0.85
RebindMethod · 0.85
prepareNamedContextFunction · 0.85
NamedQueryContextFunction · 0.85
NamedExecContextFunction · 0.85
prepareNamedFunction · 0.85
NamedQueryFunction · 0.85
NamedExecFunction · 0.85

Calls

no outgoing calls

Tested by 1

BenchmarkBindSpeedFunction · 0.68