initialize

package
v0.0.0-...-505ba7e Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

* @Author: 逆光飞翔 191180776@qq.com * @Date: 2022-12-08 17:25:49 * @LastEditors: 逆光飞翔 191180776@qq.com * @LastEditTime: 2022-12-08 18:00:00 * @FilePath: \server\initialize\gorm_mssql.go * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBList

func DBList()

func Gorm

func Gorm() *gorm.DB

Gorm 初始化数据库并产生数据库全局变量 Author SliverHorn

func GormMssql

func GormMssql() *gorm.DB

GormMssql 初始化Mssql数据库 Author [LouisZhang](191180776@qq.com)

func GormMssqlByConfig

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

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

func GormMysql

func GormMysql() *gorm.DB

GormMysql 初始化Mysql数据库 Author [piexlmax](https://github.com/piexlmax) Author [SliverHorn](https://github.com/SliverHorn)

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

GormPgSql 初始化 Postgresql 数据库 Author [piexlmax](https://github.com/piexlmax) Author [SliverHorn](https://github.com/SliverHorn)

func GormPgSqlByConfig

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

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

func InstallPlugin

func InstallPlugin(Router *gin.Engine)

func OtherInit

func OtherInit()

func PluginInit

func PluginInit(group *gin.RouterGroup, Plugin ...plugin.Plugin)

func Redis

func Redis()

func RegisterTables

func RegisterTables()

RegisterTables 注册数据库表专用 Author SliverHorn

func Routers

func Routers() *gin.Engine

func Timer

func Timer()

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