store

package
v0.0.0-...-70b0837 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDBInstance

func CreateDBInstance(dbConfig helpers.DatabaseConfig, logger *logrus.Entry) *gorm.DB

func GetDB

func GetDB(c *gin.Context) *gorm.DB

func GetDBOverride

func GetDBOverride(c *gin.Context) *gorm.DB

func InitAndGetDB

func InitAndGetDB(reset bool, dbConfig helpers.DatabaseConfig, logger *logrus.Entry) *gorm.DB

InitAndGetDB init database connexion and returns it

Types

type DefaultDatabaseLogger

type DefaultDatabaseLogger struct {
	gorm.LogWriter
}

func (DefaultDatabaseLogger) Print

func (logger DefaultDatabaseLogger) Print(values ...interface{})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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