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

Function bindAnyArgs

named.go:163–168  ·  view source on GitHub ↗
(names []string, arg interface{}, m *reflectx.Mapper)

Source from the content-addressed store, hash-verified

161}
162
163func bindAnyArgs(names []string, arg interface{}, m *reflectx.Mapper) ([]interface{}, error) {
164 if maparg, ok := convertMapStringInterface(arg); ok {
165 return bindMapArgs(names, maparg)
166 }
167 return bindArgs(names, arg, m)
168}
169
170// private interface to generate a list of interfaces from a given struct
171// type, given a list of names to pull out of the struct. Used by public

Callers 8

ExecContextMethod · 0.85
QueryContextMethod · 0.85
QueryRowContextMethod · 0.85
ExecMethod · 0.85
QueryMethod · 0.85
QueryRowMethod · 0.85
bindStructFunction · 0.85
bindArrayFunction · 0.85

Calls 3

bindMapArgsFunction · 0.85
bindArgsFunction · 0.85

Tested by

no test coverage detected