initialize

package
v0.0.0-...-66d046e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2025 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gorm

func Gorm() *gorm.DB

func GormMssql

func GormMssql() *gorm.DB

func GormMssqlByConfig

func GormMssqlByConfig(m config.Mssql) *gorm.DB

GormMssqlByConfig 初始化Mysql数据库用过传入配置

func GormMysql

func GormMysql() *gorm.DB

func GormMysqlByConfig

func GormMysqlByConfig(m config.Mysql) *gorm.DB

GormMysqlByConfig 通过传入配置初始化Mysql数据库

func GormOracle

func GormOracle() *gorm.DB

GormOracle 初始化oracle数据库 如果需要Oracle库 放开import里的注释 把下方 mysql.Config 改为 oracle.Config ; mysql.New 改为 oracle.New

func GormOracleByConfig

func GormOracleByConfig(m config.Oracle) *gorm.DB

GormOracleByConfig 初始化Oracle数据库用过传入配置

func GormPgSql

func GormPgSql() *gorm.DB

func GormPgSqlByConfig

func GormPgSqlByConfig(p config.Pgsql) *gorm.DB

GormPgSqlByConfig 初始化 Postgresql 数据库 通过指定参数

func GormSqlite

func GormSqlite() *gorm.DB

GormSqlite 初始化Sqlite数据库

func GormSqliteByConfig

func GormSqliteByConfig(s config.Sqlite) *gorm.DB

GormSqliteByConfig 初始化Sqlite数据库用过传入配置

func HealthCheck

func HealthCheck(g *gin.Context)

func Job

func Job() *cron.Cron

func OtherInit

func OtherInit()

func Redis

func Redis()

func RegisterTables

func RegisterTables()

func Routers

func Routers() *gin.Engine

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL