Documentation
¶
Index ¶
- func Gorm() *gorm.DB
- func GormMssql() *gorm.DB
- func GormMssqlByConfig(m config.Mssql) *gorm.DB
- func GormMysql() *gorm.DB
- func GormMysqlByConfig(m config.Mysql) *gorm.DB
- func GormOracle() *gorm.DB
- func GormOracleByConfig(m config.Oracle) *gorm.DB
- func GormPgSql() *gorm.DB
- func GormPgSqlByConfig(p config.Pgsql) *gorm.DB
- func GormSqlite() *gorm.DB
- func GormSqliteByConfig(s config.Sqlite) *gorm.DB
- func HealthCheck(g *gin.Context)
- func Job() *cron.Cron
- func OtherInit()
- func Redis()
- func RegisterTables()
- func Routers() *gin.Engine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GormMssqlByConfig ¶
GormMssqlByConfig 初始化Mysql数据库用过传入配置
func GormMysqlByConfig ¶
GormMysqlByConfig 通过传入配置初始化Mysql数据库
func GormOracle ¶
GormOracle 初始化oracle数据库 如果需要Oracle库 放开import里的注释 把下方 mysql.Config 改为 oracle.Config ; mysql.New 改为 oracle.New
func GormOracleByConfig ¶
GormOracleByConfig 初始化Oracle数据库用过传入配置
func GormPgSqlByConfig ¶
GormPgSqlByConfig 初始化 Postgresql 数据库 通过指定参数
func GormSqliteByConfig ¶
GormSqliteByConfig 初始化Sqlite数据库用过传入配置
func HealthCheck ¶
func RegisterTables ¶
func RegisterTables()
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.