db

package
v1.0.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdDB = &command.Command{
	Name:      "db",
	UsageLine: "db (create | migrate | delete)",
	Short:     "perform basic operations on the database",
	Long: `
The "db" command performs basic operations on the database.

You must specify a sub-command, which identifies the specific operation to
perform. The supported operations are:

	create
		Create the new database and initializes the schema according to
		the application models.

	migrate
		Perform automatic schema migration on an existing database.
		It corresponds to running GORM "db.AutoMigrate" function for
		all application models. See https://gorm.io/docs/migration.html for
		more details.

	drop
		Drop the database.
`,
	Run: Run,
}

CmdDB implements the command "whatsnew db".

Functions

func Run

func Run(_ context.Context, conf *config.Config, args []string) error

Run runs the command "whatsnew db".

Types

This section is empty.

Jump to

Keyboard shortcuts

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