mirror of
https://github.com/tangpanqing/aorm.git
synced 2025-10-05 16:06:56 +08:00
13 lines
326 B
Go
13 lines
326 B
Go
package model
|
|
|
|
import "database/sql"
|
|
|
|
type AormLink 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
|
|
}
|