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

database

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: Apache-2.0 Imports: 15 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 ListCmd

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

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

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