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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.