db

package
v0.0.6-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DB_TYPE_SQLITE = "sqlite"
)

Variables

This section is empty.

Functions

func DbInit

func DbInit(typ string, cfg interface{}) (*gorm.DB, error)

func MongodbInit

func MongodbInit(_config *config.MongoDBConfig) (*mongo.Database, error)

func RedisInit

func RedisInit(config *config.RedisConfig) (*redis.Client, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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