Documentation ¶
Index ¶
- Variables
- func Delete(table, id string) error
- func DeleteTx(tx *sql.Tx, table, id string) error
- func Get(table string, kvs map[string]interface{}, obj interface{}) error
- func GetById(table string, id string, obj interface{}) error
- func Insert(table string, obj interface{}) error
- func InsertIfNotExist(table, id string, obj interface{}) error
- func InsertTx(tx *sql.Tx, table string, obj interface{}) error
- func List(field, table string, result interface{}, clause string, args ...interface{}) error
- func ToJSON(obj interface{}) (string, error)
- func Update(table, id string, newObj interface{}) error
- func UpdateKVS(table, id string, kvs map[string]interface{}) error
- func UpdateTx(tx *sql.Tx, table, id string, newObj interface{}) error
- func UpdateUUId(table, uuId string, kvs map[string]interface{}) error
- func Upsert(table, id string, obj interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *sql.DB
Functions ¶
func InsertIfNotExist ¶
func UpdateUUId ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.