Documentation ¶
Index ¶
- Constants
- func NewMysqlDb() (*gorm.DB, map[string]*gorm.DB)
- func NewPgsqlDb() *gorm.DB
- func NewRedis() *redis.Client
- func NewSQLiteDb() *gorm.DB
- func NewViper() *viper.Viper
- type DbType
- type GormLogger
- func (gl *GormLogger) Error(ctx context.Context, msg string, data ...interface{})
- func (gl *GormLogger) Info(ctx context.Context, msg string, data ...interface{})
- func (gl *GormLogger) LogMode(level logger.LogLevel) logger.Interface
- func (gl *GormLogger) Trace(ctx context.Context, begin time.Time, fc func() (string, int64), err error)
- func (gl *GormLogger) Warn(ctx context.Context, msg string, data ...interface{})
Constants ¶
View Source
const (
SystemVersion = "v1.0.0"
)
Variables ¶
This section is empty.
Functions ¶
func NewPgsqlDb ¶
func NewSQLiteDb ¶
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.