Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB // Global variable for database
Functions ¶
func CloseDbConnection ¶
func CloseDbConnection()
CloseDbConnection can be called when program execution is stopped, to close database connection
func ConnectToDb ¶
func ConnectToDb()
ConnectToDb can be called after program start to connect to database
func LoadEnvVariables ¶
func LoadEnvVariables()
LoadEnvVariables loads necessary environment variables (DB, Mail Server, etc.) from .env file
func SyncDatabase ¶
func SyncDatabase()
SyncDatabase synchronizes the database tables with the model definitions and creates extensions if necessary
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.