db

package
v0.12.0-rc Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

db packs all db operations under this top level command.

Index

Constants

This section is empty.

Variables

View Source
var ErrConnectionNotFound = errors.New("connection not found")

Functions

func Plugins

func Plugins() []core.Plugin

Types

type Command

type Command struct {
	// contains filtered or unexported fields
}

func (Command) Alias

func (c Command) Alias() string

func (*Command) FindRoot

func (c *Command) FindRoot() string

func (Command) HelpText

func (c Command) HelpText() string

func (Command) Name

func (c Command) Name() string

func (Command) ParentName

func (c Command) ParentName() string

func (*Command) Receive

func (c *Command) Receive(pls []core.Plugin)

func (*Command) Run

func (c *Command) Run(ctx context.Context, root string, args []string) error

func (*Command) Subcommands

func (c *Command) Subcommands() []core.Command

type CreateCommand

type CreateCommand struct {
	// contains filtered or unexported fields
}

func (*CreateCommand) Flags

func (d *CreateCommand) Flags() *pflag.FlagSet

func (CreateCommand) HelpText

func (d CreateCommand) HelpText() string

func (CreateCommand) Name

func (d CreateCommand) Name() string

func (CreateCommand) ParentName

func (d CreateCommand) ParentName() string

func (*CreateCommand) ParseFlags

func (d *CreateCommand) ParseFlags(args []string)

func (*CreateCommand) Run

func (d *CreateCommand) Run(ctx context.Context, root string, args []string) error

type DropCommand

type DropCommand struct {
	// contains filtered or unexported fields
}

func (*DropCommand) Flags

func (d *DropCommand) Flags() *pflag.FlagSet

func (DropCommand) HelpText

func (d DropCommand) HelpText() string

func (DropCommand) Name

func (d DropCommand) Name() string

func (DropCommand) ParentName

func (d DropCommand) ParentName() string

func (*DropCommand) ParseFlags

func (d *DropCommand) ParseFlags(args []string)

func (*DropCommand) Run

func (d *DropCommand) Run(ctx context.Context, root string, args []string) error

type ResetCommand

type ResetCommand struct {
	// contains filtered or unexported fields
}

func (*ResetCommand) Flags

func (d *ResetCommand) Flags() *pflag.FlagSet

func (ResetCommand) HelpText

func (d ResetCommand) HelpText() string

func (ResetCommand) Name

func (d ResetCommand) Name() string

func (ResetCommand) ParentName

func (d ResetCommand) ParentName() string

func (*ResetCommand) ParseFlags

func (d *ResetCommand) ParseFlags(args []string)

func (*ResetCommand) Run

func (d *ResetCommand) Run(ctx context.Context, root string, args []string) error

func (*ResetCommand) RunBeforeTest

func (d *ResetCommand) RunBeforeTest(ctx context.Context, root string, args []string) error

RunBeforeTests will be invoked to reset the test database before tests run.

Jump to

Keyboard shortcuts

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