db

package
v0.1.0-rc.49 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

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