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.
| 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. |
| 243 | type 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. |
nothing calls this directly
no outgoing calls
no test coverage detected