Documentation ¶ Index ¶ func DBSetupCorrectly(db *database.Database) error func SetupDatabase(db *database.Database, mode SetupMode) error type SetupMode 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 ) Source Files ¶ View all Source files setup.go Click to show internal directories. Click to hide internal directories.