Documentation ¶
Index ¶
- Variables
- func New(driver, dsn string) (*gorm.DB, error)
- func NewInstance(driver, dsn string) (err error)
- type Logger
- func (l *Logger) Error(_ context.Context, msg string, val ...interface{})
- func (l *Logger) Info(_ context.Context, msg string, val ...interface{})
- func (l *Logger) LogMode(logger.LogLevel) logger.Interface
- func (l *Logger) Trace(_ context.Context, begin time.Time, fc func() (sql string, rowsAffected int64), ...)
- func (l *Logger) Warn(_ context.Context, msg string, val ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var Instance *gorm.DB
Functions ¶
func NewInstance ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.