initialize

package
v0.0.0-...-376692f Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GormMssql

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

GormMssql 初始化Mssql数据库

func GormMysql

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

GormMysql 初始化Mysql数据库

func GormOracle

func GormOracle(o config.Oracle) *gorm.DB

GormOracle 初始化oracle数据库 需要 GCC 支持,否则无法运行 如果需要Oracle库 放开import里的注释 把下方 mysql.Config 改为 oracle.Config ; mysql.New 改为 oracle.New

func GormPgSql

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

GormPgSql 初始化 Postgresql 数据库

func GormSqlite

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

GormSqlite 初始化Sqlite数据库

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