db

package
v0.0.0-...-ad0e884 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppDb

type AppDb struct {
	*gorm.DB
}
var Db *AppDb

func InitDatabase

func InitDatabase() *AppDb

type IAppDB

type IAppDB interface {
	Create(value interface{}) (tx *gorm.DB)
	Where(query interface{}, args ...interface{}) *gorm.DB
}

type IDatabaseConfig

type IDatabaseConfig interface {
	GetDatabaseConfig() config.DBConfig
}

Jump to

Keyboard shortcuts

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