Documentation ¶
Index ¶
- func BatchInsert(obj Domain, objs []interface{}) error
- func Close(conn sqlbuilder.Database, tx sqlbuilder.Tx)
- func Generate(savePath string, tables []string) error
- func GetConnect() (sqlbuilder.Database, error)
- func GetFileSplit() string
- func Insert(obj Domain) error
- func IsExistByCond(table string, cond db.Cond) (bool, error)
- func Rollback(tx sqlbuilder.Tx)
- func SelectAllByCond(table string, cond db.Cond, objs interface{}) error
- func SelectAllByCondWithNumAndOrder(table string, cond db.Cond, union *db.Union, page int, size int, ...) error
- func SelectAllByCondWithPageAndOrder(table string, cond db.Cond, union *db.Union, page int, size int, ...) (uint64, error)
- func SelectById(table string, id interface{}, obj interface{}) error
- func SelectByQuery(query string, objs interface{}, args ...interface{}) error
- func SelectCountByCond(table string, cond db.Cond) (uint64, error)
- func SelectOneByCond(table string, cond db.Cond, obj interface{}) error
- func TransBatchInsert(tx sqlbuilder.Tx, obj Domain, objs []interface{}) error
- func TransInsert(tx sqlbuilder.Tx, obj Domain) error
- func TransUpdate(tx sqlbuilder.Tx, obj Domain) error
- func TransUpdateSmart(tx sqlbuilder.Tx, table string, id int64, upd Upd) error
- func TransUpdateSmartWithCond(tx sqlbuilder.Tx, table string, cond db.Cond, upd Upd) (int64, error)
- func TransX(txFunc func(tx sqlbuilder.Tx) error) error
- func Update(obj Domain) error
- func UpdateSmart(table string, id int64, upd Upd) error
- func UpdateSmartWithCond(table string, cond db.Cond, upd Upd) (int64, error)
- type Domain
- type Upd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BatchInsert ¶
func Close ¶
func Close(conn sqlbuilder.Database, tx sqlbuilder.Tx)
func GetConnect ¶
func GetConnect() (sqlbuilder.Database, error)
func GetFileSplit ¶
func GetFileSplit() string
func IsExistByCond ¶
func Rollback ¶
func Rollback(tx sqlbuilder.Tx)
func SelectAllByCond ¶
func SelectById ¶
func SelectByQuery ¶
func SelectCountByCond ¶
func SelectOneByCond ¶
func TransBatchInsert ¶
func TransBatchInsert(tx sqlbuilder.Tx, obj Domain, objs []interface{}) error
func TransInsert ¶
func TransInsert(tx sqlbuilder.Tx, obj Domain) error
func TransUpdate ¶
func TransUpdate(tx sqlbuilder.Tx, obj Domain) error
func TransUpdateSmart ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.