setup

package
v0.0.0-...-2de04ff Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBSetupCorrectly

func DBSetupCorrectly(db *database.Database) error

func SetupDatabase

func SetupDatabase(db *database.Database, mode SetupMode) error

Types

type SetupMode

type SetupMode uint8
const (
	SetupModeInitial     SetupMode = iota // do nothing if the database already exists
	SetupModeUpgrade                      // add new tables only
	SetupModeDestructive                  // drop entire database; re-create tables
)

Jump to

Keyboard shortcuts

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