This commit is contained in:
tangpanqing
2023-01-12 21:41:53 +08:00
parent edb51e7228
commit e99561fc01
10 changed files with 176 additions and 177 deletions

12
base/Link.go Normal file
View 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
}