db

package
v0.0.0-...-fe735be Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DB *gorm.DB
)

DB ...

Functions

func GetDB

func GetDB() *gorm.DB

GetDB ...

func SetupDB

func SetupDB()

SetupDB opens a database and saves the reference to `Database` struct.

Types

type Database

type Database struct {
	*gorm.DB
}

Database ..

Jump to

Keyboard shortcuts

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