mirror of
https://github.com/tangpanqing/aorm.git
synced 2025-10-06 08:26:55 +08:00
21 lines
438 B
Go
21 lines
438 B
Go
package model
|
|
|
|
import "database/sql"
|
|
|
|
type LinkCommon interface {
|
|
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 OpinionItem struct {
|
|
Key string
|
|
Val string
|
|
}
|
|
|
|
const Mysql = "mysql"
|
|
const Mssql = "mssql"
|
|
const Postgres = "postgres"
|
|
const Sqlite3 = "sqlite3"
|