Documentation
¶
Index ¶
Constants ¶
View Source
const (
MaxDatabaseConnectionRequests = uint64(15)
)
Variables ¶
This section is empty.
Functions ¶
func AutoMigrate ¶
AutoMigrate Attempt to automatically migrate all database models.
func Connect ¶
func Connect(config interfaces.MySQLConfig, dbLogger types.DatabaseLogger) (*gorm.DB, error)
Connect Attempt to connect to the database using an exponential backoff algorithm with a maximum retry count.
func ExtractMySQLConfig ¶
func ExtractMySQLConfig(app interfaces.AppConfig) interfaces.MySQLConfig
ExtractMySQLConfig Extractor function for wire to extract the MySQL config object from the app config.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.