mirror of
https://github.com/tangpanqing/aorm.git
synced 2025-09-27 04:16:26 +08:00
13 lines
321 B
Go
13 lines
321 B
Go
package base
|
|
|
|
import "database/sql"
|
|
|
|
type Link interface {
|
|
GetDebugMode() bool
|
|
DriverName() string
|
|
Exec(query string, args ...interface{}) (sql.Result, error)
|
|
Prepare(query string) (*sql.Stmt, error)
|
|
Query(query string, args ...interface{}) (*sql.Rows, error)
|
|
QueryRow(query string, args ...interface{}) *sql.Row
|
|
}
|