db

package
v0.0.0-...-e6b71c9 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Manager *gorm.DB

Functions

func Factory

func Factory()

func FetchConnection

func FetchConnection() *gorm.DB

FetchConnection establishes a database connection

func SetLogger

func SetLogger() logger.Interface

SetLogger determines the log level based on DB_LOGMODE environment variable

Types

type DatabaseManager

type DatabaseManager struct {
	// contains filtered or unexported fields
}

DatabaseManager variable holds the gorm pointer to DB

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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