common

package
v0.0.0-...-e848f6b Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB

DB Holder.

Functions

func GetDB

func GetDB() *gorm.DB

GetDB returns a pointer to current open db connection.

func Init

func Init() *gorm.DB

Init opening a database and save the reference to `Database` struct.

Types

type Database

type Database struct {
	*gorm.DB
}

Database struct reference.

Jump to

Keyboard shortcuts

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