database

package
v0.0.0-...-d0dead0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BackendDB = &Database{}

BackendDB: package variable of type Database for easy access across backend

Functions

This section is empty.

Types

type Database

type Database struct {
	DB *gorm.DB
}

Database: type for holding generic database, DB is the database pointer

func Init

func Init() (db *Database, err error)

Init : open database stream in BackendDB variable (create database if not present)

func (*Database) Destroy

func (db *Database) Destroy()

Destroy : Close the Database

Jump to

Keyboard shortcuts

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