Documentation ¶
Index ¶
- Variables
- func AutoMigrate(db *gorm.DB, dbType string) error
- func Check(db *gorm.DB) (bool, error)
- func FindOne(db *gorm.DB, out interface{}) (bool, error)
- func FindPage(db *gorm.DB, pp pagination.Param, out interface{}) (int64, error)
- func GetAssignDB(dbName string) (*gorm.DB, bool)
- func NewDB(c *Config) (*gorm.DB, func(), error)
- func NewMulitDB(cs map[string]*Config) (func(), []error)
- func WrapPageQuery(db *gorm.DB, pp pagination.Param, out interface{}) (int64, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
View Source
var (
MulitDB map[string]*gorm.DB
)
MulitDB 多数据库源
Functions ¶
func WrapPageQuery ¶
WrapPageQuery 包装带有分页的查询
Types ¶
Click to show internal directories.
Click to hide internal directories.