Documentation ¶
Index ¶
Constants ¶
View Source
const ( // mysql errr number reference: https://mariadb.com/kb/en/mariadb-error-codes/ ErrNoDuplicateEntry = 1062 ErrNoKeyNotFound = 1032 ErrorKeyIsDuplicated = "DBKeyIsDuplicated" // 数据库key重复 ErrorUnknown = "UnknownError" // 数据库错误 ErrorRecordNotFound = "RecordNotFound" //记录不存在 )
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
func DatabaseFlags ¶
func DatabaseFlags(dbConf *config.DatabaseConfig) []cli.Flag
func GetErrorCode ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.