2020-04-09 11:15:34 +00:00
|
|
|
package sql
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"database/sql/driver"
|
|
|
|
)
|
|
|
|
|
2020-04-08 19:20:23 +00:00
|
|
|
type Driver interface {
|
2020-04-09 11:15:34 +00:00
|
|
|
Open(name string) (driver.Conn, error)
|
2020-04-08 19:20:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type QueryerContext interface {
|
2020-04-09 11:15:34 +00:00
|
|
|
QueryContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Rows, error)
|
2020-04-08 19:20:23 +00:00
|
|
|
}
|