cmd

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagBackupDir       = "backup-dir"
	FlagBatchSize       = "batch-size"
	FlagStagingDir      = "staging-dir"
	FlagStageOnly       = "stage-only"
	FlagSourceDbBackend = "source-db-backend"
)

Variables

This section is empty.

Functions

func DoMigrateCmd

func DoMigrateCmd(command *cobra.Command, migrator *utils.Migrator) error

DoMigrateCmd does all the work associated with the dbmigrate command (assuming that inputs have been validated).

func Execute

func Execute(command *cobra.Command) error

Execute sets up and executes the provided command.

func NewDBMigrateCmd

func NewDBMigrateCmd() *cobra.Command

NewDBMigrateCmd creates a command for migrating the provenanced database from one underlying type to another.

func UpdateDBBackendConfigValue

func UpdateDBBackendConfigValue(command *cobra.Command, newValue string) (string, error)

UpdateDBBackendConfigValue updates the db backend value in the config file and returns the value it used to be.

Types

This section is empty.

Jump to

Keyboard shortcuts

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