Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "reset", Short: "Drop, recreate, and migrate the database", Long: `Reset the database by dropping it, recreating it, and applying all migrations. Useful for local development when you want a fresh schema. This command is equivalent to running 'godb drop', 'godb create', and 'godb migrate' in sequence.`, Run: func(cmd *cobra.Command, args []string) { cfg, err := config.Load() if err != nil { fmt.Printf("❌ Failed to load config file at %s: %s\n", config.Path, err) } Run(cfg, force) }, }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.