Documentation
¶
Index ¶
- Variables
- func Close() error
- func New(driver, dsn string) (*gorm.DB, error)
- func NewInstance(driver, dsn string) error
- func Register(fun func() error)
- type Logger
- func (l *Logger) Error(_ context.Context, msg string, val ...any)
- func (l *Logger) Info(_ context.Context, msg string, val ...any)
- 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 ...any)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Instance *gorm.DB FilePath string // Store the actual SQLite file path )
Functions ¶
func NewInstance ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.