database

package
v0.214.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 22 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

CreateCmd is the command for creating a database.

func DatabaseCmd

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

DatabaseCmd encapsulates the commands for creating a database

func DeleteCmd

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

DeleteCmd is the Cobra command for deleting a database for an authenticated user.

func DumpCmd added in v0.25.0

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

DumpCmd encapsulates the commands for dumping a database

func ListCmd

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

ListCmd is the command for listing all databases for an authenticated user.

func RestoreCmd added in v0.27.0

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

RestoreCmd encapsulates the commands for restore a database

func ShowCmd added in v0.13.0

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

Types

type Database added in v0.14.0

type Database struct {
	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"`
	Notes     string `header:"notes" json:"notes"`
	// contains filtered or unexported fields
}

Database returns a table-serializable database model.

func (*Database) MarshalCSVValue added in v0.17.0

func (d *Database) MarshalCSVValue() interface{}

func (*Database) MarshalJSON added in v0.14.0

func (d *Database) MarshalJSON() ([]byte, error)

type Databases added in v0.14.0

type Databases []*Database

Databases represents a slice of database's.

Jump to

Keyboard shortcuts

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