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

Struct DB

sqlx.go:243–248  ·  view source on GitHub ↗

DB is a wrapper around sql.DB which keeps track of the driverName upon Open, used mostly to automatically bind named queries using the right bindvars.

Source from the content-addressed store, hash-verified

241// DB is a wrapper around sql.DB which keeps track of the driverName upon Open,
242// used mostly to automatically bind named queries using the right bindvars.
243type DB struct {
244 *sql.DB
245 driverName string
246 unsafe bool
247 Mapper *reflectx.Mapper
248}
249
250// NewDb returns a new sqlx DB wrapper for a pre-existing *sql.DB. The
251// driverName of the original database is required for named query support.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected