branch

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 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 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 StatusCmd

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

StatusCmd gets the status of a database branch using the PlanetScale API.

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"`
	Status       string `header:"status" json:"status"`
	ParentBranch string `header:"parent branch,n/a" json:"parent_branch"`
	CreatedAt    int64  `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
	UpdatedAt    int64  `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
	Notes        string `header:"notes" json:"notes"`
	// contains filtered or unexported fields
}

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)

type DatabaseBranchStatus added in v0.14.0

type DatabaseBranchStatus struct {
	Status      string `header:"status" json:"status"`
	GatewayHost string `header:"gateway_host" json:"gateway_host"`
	GatewayPort int    `header:"gateway_port,text" json:"gateway_port"`
	User        string `header:"username" json:"user"`
	Password    string `header:"password" json:"password"`
	// contains filtered or unexported fields
}

func (*DatabaseBranchStatus) MarshalJSON added in v0.14.0

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

Jump to

Keyboard shortcuts

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