reset

package
v0.2.4-fork.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2025 License: MIT Imports: 5 Imported by: 0

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

func Run

func Run(cfg config.Config, force bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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