Documentation
¶
Overview ¶
Package database handles the database singleton
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LoggerConfig = logger.Config{ SlowThreshold: time.Second, LogLevel: logger.Warn, IgnoreRecordNotFoundError: true, Colorful: true, }
LoggerConfig is the logging config for Gorm
Functions ¶
func CreateDBInstance ¶
CreateDBInstance functions almost identically to GetDBInstance but lets you specify configuration
func CreateTestDBInstance ¶
func CreateTestDBInstance()
func IsKeyValid ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.