bootstrap

package
v0.0.0-...-290a973 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package bootstrap provides custom initialisation functions to be called from main on startup

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Database

func Database(conf *config.Database, version string, withBar bool) (*sqlx.DB, error)

Database initialises the database and returns the connection.

func DatabaseReset

func DatabaseReset(conf *config.Database, withBar bool) error

DatabaseReset resets the whole database. NOTE: all data will be lost, should be used only for development.

Types

This section is empty.

Jump to

Keyboard shortcuts

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