Runner methods RunWith sets a Runner (like database/sql.DB) to be used with e.g. Exec. For most cases runner will be a database connection. Internally we use this to mock out the database connection for testing.
(runner BaseRunner)
| 184 | // |
| 185 | // Internally we use this to mock out the database connection for testing. |
| 186 | func (b SelectBuilder) RunWith(runner BaseRunner) SelectBuilder { |
| 187 | return setRunWith(b, runner).(SelectBuilder) |
| 188 | } |
| 189 | |
| 190 | // Exec builds and Execs the query with the Runner set by RunWith. |
| 191 | func (b SelectBuilder) Exec() (sql.Result, error) { |
nothing calls this directly
no test coverage detected