lib

package
v0.0.0-...-b4b3adb Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConnection

func GetConnection() (dbConnection *gorm.DB, err error)

GetConnection : This can be called from anywhere in the code to get the DB connection

Types

type Database

type Database struct {
	Connection *gorm.DB
	Status     bool
}

Database struct to get client and status

var DB Database

DB variable to get Database instance

Jump to

Keyboard shortcuts

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