Help us shape the future of Go! Take the 2026 Go Developer Survey

root

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = &cobra.Command{
	Version: shared.VersionString(),
	Use:     "pgmigrate",
	Short:   shared.DocsLink,
	Example: shared.CLIExample(`
# Preview and then apply migrations
pgmigrate plan     # Preview which migrations would be applied
pgmigrate migrate  # Apply any previously-unapplied migrations
pgmigrate verify   # Verify that migrations have been applied correctly
pgmigrate applied  # Show all previously-applied migrations

# Dump the current schema to a file
pgmigrate dump --out schema.sql
	`),
	TraverseChildren: true,
	RunE: func(cmd *cobra.Command, args []string) error {
		if len(args) != 0 {
			return fmt.Errorf(`invalid command: "%s"`, args[0])
		}
		return cmd.Help()
	},
}
View Source
var DumpFlags struct {
	Out    *string
	Schema *string
}
View Source
var NewFlags struct {
	Name   *string
	Bare   *bool
	Create *bool
}

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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