Documentation ¶
Overview ¶
db packs all db operations under this top level command.
Index ¶
- Variables
- func Plugins(conns interface{}) []plugins.Plugin
- type Command
- type CreateCommand
- func (d *CreateCommand) Flags() *pflag.FlagSet
- func (d CreateCommand) HelpText() string
- func (d CreateCommand) Name() string
- func (d CreateCommand) ParentName() string
- func (d *CreateCommand) ParseFlags(args []string)
- func (d *CreateCommand) Run(ctx context.Context, root string, args []string) error
- type DropCommand
- type ResetCommand
- func (d *ResetCommand) Flags() *pflag.FlagSet
- func (d ResetCommand) HelpText() string
- func (d ResetCommand) Name() string
- func (d ResetCommand) ParentName() string
- func (d *ResetCommand) ParseFlags(args []string)
- func (d *ResetCommand) Run(ctx context.Context, root string, args []string) error
- func (d *ResetCommand) RunBeforeTest(ctx context.Context, root string, args []string) error
- type Resetter
- type URLProvider
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConnectionNotFound = errors.New("connection not found")
Functions ¶
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func (Command) ParentName ¶
func (*Command) Subcommands ¶
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)
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)
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) RunBeforeTest ¶ added in v0.6.2
RunBeforeTests will be invoked to reset the test database before tests run.
type URLProvider ¶
type URLProvider interface {
URL() string
}
URLProvider provider is a struct that has the URL() method. Like pop.Connection.
Click to show internal directories.
Click to hide internal directories.