database

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2022 License: AGPL-3.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB

DB is the database used by the backend.

Functions

func ConnectDatabase

func ConnectDatabase(dialector func(string) gorm.Dialector, dsn string) error

ConnectDatabase connects to the database DB.

func Database

func Database() error

Database sets up the database.

Types

This section is empty.

Jump to

Keyboard shortcuts

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