shad-go/lectures/07-sql/sql/driver.go
2020-04-09 14:15:54 +03:00

14 lines
256 B
Go

package sql
import (
"context"
"database/sql/driver"
)
type Driver interface {
Open(name string) (driver.Conn, error)
}
type QueryerContext interface {
QueryContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Rows, error)
}