2019-05-27 13:11:15 +02:00
|
|
|
package execution
|
2019-04-07 09:58:12 +02:00
|
|
|
|
2019-06-20 12:22:19 +02:00
|
|
|
import (
|
|
|
|
|
"context"
|
|
|
|
|
"database/sql"
|
|
|
|
|
)
|
2019-04-07 09:58:12 +02:00
|
|
|
|
|
|
|
|
type Db interface {
|
|
|
|
|
Exec(query string, args ...interface{}) (sql.Result, error)
|
2019-06-20 12:22:19 +02:00
|
|
|
ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
|
2019-04-07 09:58:12 +02:00
|
|
|
Query(query string, args ...interface{}) (*sql.Rows, error)
|
2019-06-20 12:22:19 +02:00
|
|
|
QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
|
2019-04-07 09:58:12 +02:00
|
|
|
}
|