Documentation ¶
Index ¶
- Variables
- func BulkInsert(db *gorm.DB, table string, fields []string, params []map[string]interface{}) error
- func BulkSave(db *gorm.DB, table string, fields []string, params []map[string]interface{}) error
- func Close()
- func GetORM(dbname ...string) *gorm.DB
- func NewOrUpdateDB(dbname string) error
- func SetDefaultName(dbName string)
- type Client
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrRecordNotFound record not found error, happens when haven't find any matched data when looking up with a struct ErrRecordNotFound = gorm.ErrRecordNotFound // ErrInvalidTransaction invalid transaction when you are trying to `Commit` or `Rollback` ErrInvalidTransaction = gorm.ErrInvalidTransaction )
Functions ¶
func BulkInsert ¶
Deprecated BulkInsert 批量插入 不对唯一索引做更新
Types ¶
Click to show internal directories.
Click to hide internal directories.