package
Version:
v0.0.0-...-b4b3adb
Opens a new window with list of versions in this module.
Published: Jul 10, 2021
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func GetConnection() (dbConnection *gorm.DB, err error)
GetConnection : This can be called from anywhere in the code to get the DB connection
type Database struct {
Connection *gorm.DB
Status bool
}
Database struct to get client and status
DB variable to get Database instance
Source Files
¶
Click to show internal directories.
Click to hide internal directories.