Documentation ¶
Index ¶
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 // ErrInvalidSQL invalid SQL error, happens when you passed invalid SQL ErrInvalidSQL = gorm.ErrInvalidSQL // ErrInvalidTransaction invalid transaction when you are trying to `Commit` or `Rollback` ErrInvalidTransaction = gorm.ErrInvalidTransaction // ErrCantStartTransaction can't start transaction when you are trying to start one with `Begin` ErrCantStartTransaction = gorm.ErrCantStartTransaction // ErrUnaddressable unaddressable value ErrUnaddressable = gorm.ErrUnaddressable )
Functions ¶
Types ¶
type Client ¶ added in v1.5.3
type Client struct {
// contains filtered or unexported fields
}
func (*Client) NewOrUpdateDB ¶ added in v1.5.3
NewOrUpdateDB 初始化或更新Gorm
func (*Client) SetDefaultName ¶ added in v1.5.3
SetDefaultName 设置默认DB Name
Click to show internal directories.
Click to hide internal directories.