sql

package
v0.0.0-...-d17141e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2023 License: MIT Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FailedConnectionCounter = 10 // amount of retries to connect to the database

Functions

func ConnectToDatabase

func ConnectToDatabase() (client *gorm.DB, err error)

ConnectToDatabase connects to a database with the default config

func ConnectToDatabaseWithConfig

func ConnectToDatabaseWithConfig(config *gorm.Config) (client *gorm.DB, err error)

ConnectToDatabaseWithConfig connects to a database with a specific config

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL