Documentation ¶
Index ¶
- func BranchCmd(ch *cmdutil.Helper) *cobra.Command
- func CreateCmd(ch *cmdutil.Helper) *cobra.Command
- func DeleteCmd(ch *cmdutil.Helper) *cobra.Command
- func DemoteCmd(ch *cmdutil.Helper) *cobra.Command
- func DiffCmd(ch *cmdutil.Helper) *cobra.Command
- func DisableSafeMigrationsCmd(ch *cmdutil.Helper) *cobra.Command
- func EnableSafeMigrationsCmd(ch *cmdutil.Helper) *cobra.Command
- func GetRoutingRulesCmd(ch *cmdutil.Helper) *cobra.Command
- func GetVSchemaCmd(ch *cmdutil.Helper) *cobra.Command
- func KeyspaceCmd(ch *cmdutil.Helper) *cobra.Command
- func LintCmd(ch *cmdutil.Helper) *cobra.Command
- func ListCmd(ch *cmdutil.Helper) *cobra.Command
- func PromoteCmd(ch *cmdutil.Helper) *cobra.Command
- func RefreshSchemaCmd(ch *cmdutil.Helper) *cobra.Command
- func RoutingRulesCmd(ch *cmdutil.Helper) *cobra.Command
- func SafeMigrationsCmd(ch *cmdutil.Helper) *cobra.Command
- func SchemaCmd(ch *cmdutil.Helper) *cobra.Command
- func ShowCmd(ch *cmdutil.Helper) *cobra.Command
- func SwitchCmd(ch *cmdutil.Helper) *cobra.Command
- func UpdateRoutingRulesCmd(ch *cmdutil.Helper) *cobra.Command
- func UpdateVSchemaCmd(ch *cmdutil.Helper) *cobra.Command
- func VSchemaCmd(ch *cmdutil.Helper) *cobra.Command
- type DatabaseBranch
- type DatabaseBranchKeyspace
- type SchemaLintError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableSafeMigrationsCmd ¶ added in v0.132.0
func EnableSafeMigrationsCmd ¶ added in v0.132.0
func GetRoutingRulesCmd ¶ added in v0.187.0
GetRoutingRulesCmd is the command for showing the routing rules of a branch.
func GetVSchemaCmd ¶ added in v0.187.0
GetVSchemaCmd is the command for showing the VSchema of a branch.
func KeyspaceCmd ¶ added in v0.110.0
VSchemaCmd is the command for showing the VSchema of a branch.
func RoutingRulesCmd ¶ added in v0.187.0
RoutingRulesCmd is the top-level command for fetching or updating the routing rules of a branch.
func SafeMigrationsCmd ¶ added in v0.132.0
func UpdateRoutingRulesCmd ¶ added in v0.187.0
UpdateRoutingRulesCmd is the command for updating the routing rules of a branch.
func UpdateVSchemaCmd ¶ added in v0.187.0
UpdateVSchemaCmd is the command for 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.