Help us shape the future of Go! Take the 2026 Go Developer Survey

snapshot

package
v0.18.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCmd

func CreateCmd(ch *cmdutil.Helper) *cobra.Command

func ListCmd

func ListCmd(ch *cmdutil.Helper) *cobra.Command

ListCmd makes a command for listing all snapshots for a database branch.

func ShowCmd added in v0.13.0

func ShowCmd(ch *cmdutil.Helper) *cobra.Command

ShowCmd makes a command for fetching a single snapshot by its ID.

func SnapshotCmd

func SnapshotCmd(ch *cmdutil.Helper) *cobra.Command

SnapshotCmd encapsulates the command for running snapshots.

Types

type SchemaSnapshot added in v0.14.0

type SchemaSnapshot struct {
	ID        string `header:"id" json:"id"`
	Name      string `header:"name" json:"name"`
	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
}

SchemaSnapshot returns a table and json serializable schema snapshot.

func (*SchemaSnapshot) MarshalCSVValue added in v0.17.0

func (s *SchemaSnapshot) MarshalCSVValue() interface{}

func (*SchemaSnapshot) MarshalJSON added in v0.14.0

func (s *SchemaSnapshot) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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