Documentation
¶
Index ¶
- func CreateMany(db *gorm.DB, data ...interface{}) (err error)
- func CreateOne(db *gorm.DB, data interface{}) (err error)
- func Delete(db *gorm.DB, model interface{}, filter map[string]interface{}) (err error)
- func FindMany(db *gorm.DB, filter map[string]interface{}, data []interface{}) (err error)
- func FindOne(db *gorm.DB, filter map[string]interface{}, data interface{}) (err error)
- func Paginate(db *gorm.DB, pageSize, pageIndex int64, filter map[string]interface{}, ...) (err error)
- func SearchObject(db *gorm.DB, wheres map[string]interface{}, out interface{}) error
- func SearchObjectByIn(db *gorm.DB, wheres map[string]interface{}, ins map[string]interface{}, ...) error
- func SearchObjectByOrder(db *gorm.DB, wheres map[string]interface{}, ins map[string]interface{}, ...) error
- func TableCols(db *sql.DB, tbNames ...string) (map[string]TbCol, error)
- func TableNames(db *sql.DB) ([]string, error)
- func Update(db *gorm.DB, data interface{}) (err error)
- func UpdateObject(db *gorm.DB, wheres, updates map[string]interface{}) error
- func UpdateObjectIns(db *gorm.DB, wheres, ins, updates map[string]interface{}) error
- func ViewNames(db *sql.DB) ([]string, error)
- type Person
- type Place
- type TbCol
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMany ¶
func SearchObject ¶
func SearchObjectByIn ¶
func SearchObjectByOrder ¶
func UpdateObject ¶
updates maybe use gorm.Expr()
func UpdateObjectIns ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.