16 lines
312 B
Go
16 lines
312 B
Go
package datamysql
|
|
|
|
import (
|
|
"database/sql"
|
|
)
|
|
|
|
type scanner interface {
|
|
Scan(dest ...interface{}) error
|
|
}
|
|
|
|
type executor interface {
|
|
Exec(query string, args ...interface{}) (sql.Result, error)
|
|
QueryRow(query string, args ...interface{}) *sql.Row
|
|
Query(query string, args ...interface{}) (*sql.Rows, error)
|
|
}
|