mirror of
https://github.com/tangpanqing/aorm.git
synced 2025-10-08 09:20:09 +08:00
23 lines
497 B
Go
23 lines
497 B
Go
package model
|
|
|
|
import "database/sql"
|
|
|
|
type LinkCommon 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
|
|
}
|
|
|
|
type FieldInfo struct {
|
|
TablePointer uintptr
|
|
Name string
|
|
}
|
|
|
|
const Mysql = "mysql"
|
|
const Mssql = "mssql"
|
|
const Postgres = "postgres"
|
|
const Sqlite3 = "sqlite3"
|