Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
type Cmd struct {
Snapshot SnapshotCmd `` /* 127-byte string literal not displayed */
}
Cmd is `w17ctl db` — local dev-DB tooling. Today: manual snapshots.
type SnapshotActivateCmd ¶
type SnapshotActivateCmd struct {
Name string `arg:"" help:"Savepoint name to restore."`
Force bool `` /* 165-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*SnapshotActivateCmd) Run ¶
func (c *SnapshotActivateCmd) Run() error
type SnapshotCmd ¶
type SnapshotCmd struct {
Save SnapshotSaveCmd `cmd:"" help:"Save the live stores to a named savepoint under the current initiative."`
List SnapshotListCmd `cmd:"" help:"List the current initiative's savepoints."`
Activate SnapshotActivateCmd `cmd:"" help:"Restore a named savepoint into the live stores."`
Delete SnapshotDeleteCmd `cmd:"" help:"Delete a named savepoint."`
}
SnapshotCmd is `w17ctl db snapshot` — point-in-time savepoints of the local stores, scoped to an initiative (the dev DB lifecycle's manual layer, docs/specs/storage/dev-db-lifecycle.md §workflow modes). CRUD the developer drives; the currently-live stores are saved/ restored. Orthogonal to the branch-switch reconcile (which only touches the initiative's main state). Activation guards that the savepoint's schema lineage matches the initiative's current checkpoint.
type SnapshotDeleteCmd ¶
type SnapshotDeleteCmd struct {
Name string `arg:"" help:"Savepoint name to delete."`
// contains filtered or unexported fields
}
func (*SnapshotDeleteCmd) Run ¶
func (c *SnapshotDeleteCmd) Run() error
type SnapshotListCmd ¶
type SnapshotListCmd struct {
// contains filtered or unexported fields
}
func (*SnapshotListCmd) Run ¶
func (c *SnapshotListCmd) Run() error
type SnapshotSaveCmd ¶
type SnapshotSaveCmd struct {
Name string `arg:"" help:"Savepoint name."`
// contains filtered or unexported fields
}
func (*SnapshotSaveCmd) Run ¶
func (c *SnapshotSaveCmd) Run() error
Click to show internal directories.
Click to hide internal directories.