Documentation
¶
Index ¶
- func BranchCmd(ch *cmdutil.Helper) *cobra.Command
- func ConnectionsCmd(ch *cmdutil.Helper) *cobra.Command
- func ConnectionsKillCmd(ch *cmdutil.Helper) *cobra.Command
- func ConnectionsKillTransactionCmd(ch *cmdutil.Helper) *cobra.Command
- func ConnectionsShowCmd(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 DownloadQueryPatternsCmd(ch *cmdutil.Helper) *cobra.Command
- func EnableSafeMigrationsCmd(ch *cmdutil.Helper) *cobra.Command
- func GetRoutingRulesCmd(ch *cmdutil.Helper) *cobra.Command
- func InfraCmd(ch *cmdutil.Helper) *cobra.Command
- func LintCmd(ch *cmdutil.Helper) *cobra.Command
- func ListCmd(ch *cmdutil.Helper) *cobra.Command
- func ParametersCmd(ch *cmdutil.Helper) *cobra.Command
- func ProcesslistCmd(ch *cmdutil.Helper) *cobra.Command
- func ProcesslistKillCmd(ch *cmdutil.Helper) *cobra.Command
- func ProcesslistShowCmd(ch *cmdutil.Helper) *cobra.Command
- func PromoteCmd(ch *cmdutil.Helper) *cobra.Command
- func QueryPatternsCmd(ch *cmdutil.Helper) *cobra.Command
- func RefreshSchemaCmd(ch *cmdutil.Helper) *cobra.Command
- func ResizeCancelCmd(ch *cmdutil.Helper) *cobra.Command
- func ResizeCmd(ch *cmdutil.Helper) *cobra.Command
- func ResizeStatusCmd(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
- type DatabaseBranch
- type InfraPod
- type PostgresBranch
- type PostgresInfraRow
- type QueryPatternsDownload
- type SchemaLintError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectionsCmd ¶ added in v0.290.0
ConnectionsCmd manages branch connections across supported database engines.
func ConnectionsKillCmd ¶ added in v0.290.0
func ConnectionsKillTransactionCmd ¶ added in v0.290.0
func ConnectionsShowCmd ¶ added in v0.290.0
func DisableSafeMigrationsCmd ¶ added in v0.132.0
func DownloadQueryPatternsCmd ¶ added in v0.294.0
DownloadQueryPatternsCmd generates a query patterns report for a branch, waits for it to finish, and downloads the resulting CSV file.
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 ParametersCmd ¶ added in v0.304.0
ParametersCmd groups the read-only parameter commands for a Postgres branch. Parameters are changed with 'pscale branch resize --parameters'.
func ProcesslistCmd ¶ added in v0.287.0
ProcesslistCmd manages MySQL process lists for a Vitess branch.
func ProcesslistKillCmd ¶ added in v0.287.0
ProcesslistKillCmd kills a running MySQL process on a Vitess branch.
func ProcesslistShowCmd ¶ added in v0.287.0
ProcesslistShowCmd shows the MySQL process list for a Vitess branch.
func QueryPatternsCmd ¶ added in v0.294.0
QueryPatternsCmd wraps commands for a branch's query patterns reports.
func ResizeCancelCmd ¶ added in v0.304.0
ResizeCancelCmd cancels the queued change requests for a Postgres branch.
func ResizeCmd ¶ added in v0.292.0
ResizeCmd changes a Postgres branch's cluster: its size, replica count, and/or configuration parameters. All changes are queued as a single change request via the branch changes API.
func ResizeStatusCmd ¶ added in v0.304.0
ResizeStatusCmd shows the most recent change request for a Postgres 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
Types ¶
type DatabaseBranch ¶ added in v0.14.0
type DatabaseBranch struct {
ID string `header:"id" json:"id"`
Name string `header:"name" json:"name"`
ParentBranch string `header:"parent branch,n/a" json:"parent_branch"`
Region string `header:"region" json:"region"`
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 InfraPod ¶ added in v0.273.0
type InfraPod struct {
Component string `header:"component" json:"component"`
Size string `header:"size" json:"size"`
Cell string `header:"cell" json:"cell"`
TabletType string `header:"tablet type" json:"tablet_type"`
KeyspaceShard string `header:"keyspace/shard" json:"keyspace_shard"`
Ready string `header:"ready" json:"ready"`
Restarts int `header:"restarts" json:"restarts"`
Status string `header:"status" json:"status"`
Age string `header:"age" json:"age"`
Name string `header:"pod name" json:"name"`
// contains filtered or unexported fields
}
func (*InfraPod) MarshalCSVValue ¶ added in v0.273.0
func (p *InfraPod) MarshalCSVValue() interface{}
func (*InfraPod) MarshalJSON ¶ added in v0.273.0
type PostgresBranch ¶ added in v0.247.0
type PostgresBranch struct {
ID string `header:"id" json:"id"`
Name string `header:"name" json:"name"`
ParentBranch string `header:"parent branch,n/a" json:"parent_branch"`
Region string `header:"region" json:"region"`
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 ToPostgresBranch ¶ added in v0.247.0
func ToPostgresBranch(b *ps.PostgresBranch) *PostgresBranch
func (*PostgresBranch) MarshalCSVValue ¶ added in v0.247.0
func (p *PostgresBranch) MarshalCSVValue() interface{}
func (*PostgresBranch) MarshalJSON ¶ added in v0.247.0
func (p *PostgresBranch) MarshalJSON() ([]byte, error)
type PostgresInfraRow ¶ added in v0.298.0
type PostgresInfraRow struct {
Component string `header:"component" json:"component"`
Role string `header:"role" json:"role"`
Size string `header:"size" json:"size"`
AZ string `header:"az" json:"az"`
Storage string `header:"storage" json:"storage"`
Name string `header:"name" json:"name"`
// contains filtered or unexported fields
}
func (*PostgresInfraRow) MarshalCSVValue ¶ added in v0.298.0
func (r *PostgresInfraRow) MarshalCSVValue() interface{}
func (*PostgresInfraRow) MarshalJSON ¶ added in v0.298.0
func (r *PostgresInfraRow) MarshalJSON() ([]byte, error)
type QueryPatternsDownload ¶ added in v0.294.0
type QueryPatternsDownload struct {
ID string `header:"id" json:"id"`
State string `header:"state" json:"state"`
File string `header:"file" json:"file"`
}
QueryPatternsDownload is the result of downloading a query patterns report.
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.