database

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMongodb

func GetMongodb() *mongo.Database

func GetMysql

func GetMysql() *gorm.DB

func GetRedis

func GetRedis() *redis.Client

func TableAutoMigrate

func TableAutoMigrate(db *gorm.DB) error

Types

type CloseFunc

type CloseFunc func()

func InitializeMongo

func InitializeMongo(c *config.MongoConfig) CloseFunc

func InitializeMysql

func InitializeMysql(c *config.MysqlConfig) CloseFunc

func InitializeRedis

func InitializeRedis(c *config.RedisConfig) CloseFunc

Jump to

Keyboard shortcuts

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