SQLCommon is the minimal interface required by a db connection
| 25 | |
| 26 | // SQLCommon is the minimal interface required by a db connection |
| 27 | type SQLCommon interface { |
| 28 | Exec(query string, args ...interface{}) (sql.Result, error) |
| 29 | Prepare(query string) (*sql.Stmt, error) |
| 30 | Query(query string, args ...interface{}) (*sql.Rows, error) |
| 31 | QueryRow(query string, args ...interface{}) *sql.Row |
| 32 | } |
| 33 | |
| 34 | // sqlDb is an interface implemented by *sql.DB |
| 35 | type sqlDb interface { |
no outgoing calls
no test coverage detected