Documentation
¶
Index ¶
- func BranchCmd(ch *cmdutil.Helper) *cobra.Command
- func CreateCmd(ch *cmdutil.Helper) *cobra.Command
- func DeleteCmd(ch *cmdutil.Helper) *cobra.Command
- func DiffCmd(ch *cmdutil.Helper) *cobra.Command
- func KeyspaceCmd(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 SchemaCmd(ch *cmdutil.Helper) *cobra.Command
- func ShowCmd(ch *cmdutil.Helper) *cobra.Command
- func SwitchCmd(ch *cmdutil.Helper) *cobra.Command
- func VSchemaCmd(ch *cmdutil.Helper) *cobra.Command
- type DatabaseBranch
- type DatabaseBranchKeyspace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeyspaceCmd ¶ added in v0.110.0
VSchemaCmd is the command for showing 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"`
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)
Click to show internal directories.
Click to hide internal directories.