Versions in this module Expand all Collapse all v0 v0.1.0 Dec 3, 2019 Changes in this version + func Check(ctx context.Context, db *gorm.DB) (bool, error) + func ExecTrans(ctx context.Context, db *gorm.DB, fn TransFunc) error + func ExecTransWithLock(ctx context.Context, db *gorm.DB, fn TransFunc) error + func FindOne(ctx context.Context, db *gorm.DB, out interface{}) (bool, error) + func FindPage(ctx context.Context, db *gorm.DB, pageIndex, pageSize int, out interface{}) (int, error) + func WrapPageQuery(ctx context.Context, db *gorm.DB, pp *schema.PaginationParam, out interface{}) (*schema.PaginationResult, error) + type TransFunc func(context.Context) error