database

package
v0.0.0-...-5e6e4b0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	Conn   *sqlx.DB
	Config configs.Database
}

Database represents the generic database interface.

func MustInit

func MustInit(config configs.Database) (db *Database)

MustInit attempts to connect to the database and panics in case of failure.

Jump to

Keyboard shortcuts

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