branch

package
v0.94.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BranchCmd

func BranchCmd(ch *cmdutil.Helper) *cobra.Command

BranchCmd handles the branching of a database.

func CreateCmd added in v0.9.0

func CreateCmd(ch *cmdutil.Helper) *cobra.Command

func DeleteCmd

func DeleteCmd(ch *cmdutil.Helper) *cobra.Command

func DiffCmd added in v0.21.0

func DiffCmd(ch *cmdutil.Helper) *cobra.Command

DiffCmd is the command for showing the diff of a branch.

func ListCmd

func ListCmd(ch *cmdutil.Helper) *cobra.Command

ListCmd encapsulates the command for listing branches for a database.

func PromoteCmd added in v0.64.0

func PromoteCmd(ch *cmdutil.Helper) *cobra.Command

func RefreshSchemaCmd added in v0.28.0

func RefreshSchemaCmd(ch *cmdutil.Helper) *cobra.Command

func SchemaCmd added in v0.21.0

func SchemaCmd(ch *cmdutil.Helper) *cobra.Command

SchemaCmd is the command for showing the schema of a branch.

func ShowCmd added in v0.13.0

func ShowCmd(ch *cmdutil.Helper) *cobra.Command

func SwitchCmd added in v0.2.0

func SwitchCmd(ch *cmdutil.Helper) *cobra.Command

Types

type DatabaseBranch added in v0.14.0

type DatabaseBranch struct {
	Name         string `header:"name" json:"name"`
	ParentBranch string `header:"parent branch,n/a" json:"parent_branch"`
	Production   bool   `header:"production" json:"production"`
	Ready        bool   `header:"ready" json:"ready"`
	CreatedAt    int64  `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
	UpdatedAt    int64  `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
	// contains filtered or unexported fields
}

func ToDatabaseBranch added in v0.69.0

func ToDatabaseBranch(db *ps.DatabaseBranch) *DatabaseBranch

ToDatabaseBranch returns a struct that prints out the various fields of a database model.

func (*DatabaseBranch) MarshalCSVValue added in v0.17.0

func (d *DatabaseBranch) MarshalCSVValue() interface{}

func (*DatabaseBranch) MarshalJSON added in v0.14.0

func (d *DatabaseBranch) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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