mirror of
https://github.com/tangpanqing/aorm.git
synced 2025-10-08 17:30:55 +08:00
update
This commit is contained in:
12
base/Link.go
Normal file
12
base/Link.go
Normal file
@@ -0,0 +1,12 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user