Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MysqlErrCode ¶
type MysqlErrCode uint16
MysqlErrCode mysql error code
const ( MysqlDupEntry MysqlErrCode = 1062 MysqlRowIsReferenced MysqlErrCode = 1451 MysqlNoReferencedRow MysqlErrCode = 1452 )
func GetMysqlErrCode ¶
func GetMysqlErrCode(err error) MysqlErrCode
GetMysqlErrCode get mysql error code, if error is nil or not a mysql error, return 0
Click to show internal directories.
Click to hide internal directories.