db

package
v0.7.11 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: MIT Imports: 7 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(conns interface{}) []plugins.Plugin

Types

type Command

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

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 []plugins.Plugin)

func (*Command) Run

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

func (*Command) Subcommands

func (c *Command) Subcommands() []plugins.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 added in v0.6.2

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

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

type Resetter added in v0.6.2

type Resetter interface {
	DropDB() error
	CreateDB() error
}

type URLProvider

type URLProvider interface {
	URL() string
}

URLProvider provider is a struct that has the URL() method. Like pop.Connection.

Jump to

Keyboard shortcuts

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