Documentation ¶
Index ¶
- func Copy(rs *sql.Rows, db Database, table string, uniqueKeys ...string) error
- func Count(db Database, object IObject, prefix string, sql string, args ...interface{}) (int64, error)
- func Delete(db Database, object IObject, prefix string) (sql.Result, error)
- func DeleteWithSQL(db Database, object IObject, prefix string, sql string, args ...interface{}) (sql.Result, error)
- func Each(object interface{}, fn func(field Field) bool) bool
- func Insert(db Database, object IObject, prefix string) (sql.Result, error)
- func Install(db Database, object IObject, prefix string, autoIncrement int64, ...) (error, interface{})
- func InstallSQL(table interface{}, prefix string, autoIncrement int64, ver interface{}) (string, interface{})
- func Merge(options ...interface{}) interface{}
- func Query(db Database, object IObject, prefix string, sql string, args ...interface{}) (*sql.Rows, error)
- func QueryWithKeys(db Database, object IObject, prefix string, keys map[string]bool, sql string, ...) (*sql.Rows, error)
- func TableName(prefix string, object IObject) string
- func Transaction(db *sql.DB, fn func(conn Database) error) error
- func Update(db Database, object IObject, prefix string) (sql.Result, error)
- func UpdateWithKeys(db Database, object IObject, prefix string, keys map[string]bool) (sql.Result, error)
- type Database
- type Field
- type IObject
- type Object
- type Scaner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteWithSQL ¶
func InstallSQL ¶
func QueryWithKeys ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.