branch

package
v0.207.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: Apache-2.0 Imports: 19 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 DemoteCmd added in v0.131.0

func DemoteCmd(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 DisableSafeMigrationsCmd added in v0.132.0

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

func EnableSafeMigrationsCmd added in v0.132.0

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

func GetRoutingRulesCmd added in v0.187.0

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

GetRoutingRulesCmd is the command for showing the routing rules of a branch.

func GetVSchemaCmd added in v0.187.0

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

GetVSchemaCmd is the command for showing the VSchema of a branch.

func KeyspaceCmd added in v0.110.0

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

VSchemaCmd is the command for showing the VSchema of a branch.

func LintCmd added in v0.134.0

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

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 RoutingRulesCmd added in v0.187.0

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

RoutingRulesCmd is the top-level command for fetching or updating the routing rules of a branch.

func SafeMigrationsCmd added in v0.132.0

func SafeMigrationsCmd(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

func UpdateRoutingRulesCmd added in v0.187.0

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

UpdateRoutingRulesCmd is the command for updating the routing rules of a branch.

func UpdateVSchemaCmd added in v0.187.0

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

UpdateVSchemaCmd is the command for updating the VSchema of a branch.

func VSchemaCmd added in v0.96.0

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

VSchemaCmd is the top-level command for fetching or updating the VSchema of a branch.

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"`
	SafeMigrations bool   `header:"safe migrations" json:"safe_migrations"`
	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)

type DatabaseBranchKeyspace added in v0.110.0

type DatabaseBranchKeyspace struct {
	Name      string `header:"name" json:"name"`
	Shards    int    `header:"shards" json:"shards"`
	Sharded   bool   `header:"sharded" json:"sharded"`
	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 ToDatabaseBranchKeyspace added in v0.110.0

func ToDatabaseBranchKeyspace(ks *ps.Keyspace) *DatabaseBranchKeyspace

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

func (*DatabaseBranchKeyspace) MarshalCSVValue added in v0.110.0

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

func (*DatabaseBranchKeyspace) MarshalJSON added in v0.110.0

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

type SchemaLintError added in v0.134.0

type SchemaLintError struct {
	LintError        string `json:"lint_error" header:"lint_error"`
	Keyspace         string `json:"keyspace_name" header:"keyspace"`
	Table            string `json:"table_name" header:"table"`
	SubjectType      string `json:"subject_type" header:"subject_type"`
	ErrorDescription string `json:"error_description" header:"error_description"`
	DocsURL          string `json:"docs_url" header:"docs_url"`
	// contains filtered or unexported fields
}

SchemaLintError returns a table-serializable lint error.

Jump to

Keyboard shortcuts

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