db

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDB

func GetDB() *gorm.DB

func InitDB

func InitDB() error

func SetDB

func SetDB(db *gorm.DB)

Types

type DB

type DB struct {
	// contains filtered or unexported fields
}

func InitDBByConfig

func InitDBByConfig(dbCfg *config2.AppDBConfig) (*DB, error)

func NewDB

func NewDB(dsn string) (*DB, error)

func (*DB) GetDB

func (d *DB) GetDB() *gorm.DB

Jump to

Keyboard shortcuts

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