initializers

package
v0.0.0-...-1f82a06 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

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