Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsRecordNotFoundErr ¶ added in v0.9.0
IsRecordNotFoundErr 判断是否记录不存在错误
func StartTransaction ¶
func StartTransaction(ctx context.Context, trans TransactionFunc) error
StartTransaction 开启事务
Types ¶
type Option ¶
type Option func(*Options)
func WithIgnoreRecordNotFoundError ¶
WithIgnoreRecordNotFoundError 忽略记录不存在错误
func WithParameterizedQueries ¶
WithParameterizedQueries 使用参数化查询
func WithSlowThreshold ¶
WithSlowThreshold 设置慢查询阈值
type TransactionFunc ¶
Click to show internal directories.
Click to hide internal directories.