commands

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbstractCommand

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

AbstractCommand is parent command for other commands

type CleanCommand

type CleanCommand struct {
	AbstractCommand
}

CleanCommand is command for clean database

func NewCleanCommand

func NewCleanCommand(service serviceContract) *CleanCommand

NewCleanCommand returns command instance

func (*CleanCommand) Help

func (c *CleanCommand) Help() string

Help method displays info about command

func (*CleanCommand) Run

func (c *CleanCommand) Run(args []string) int

Run method executes the command

func (*CleanCommand) Synopsis

func (c *CleanCommand) Synopsis() string

Synopsis method show short description about command

type CreateCommand

type CreateCommand struct {
	AbstractCommand
}

CreateCommand is command for create migrations files

func NewCreateCommand

func NewCreateCommand(service serviceContract) *CreateCommand

NewCreateCommand returns command instance

func (*CreateCommand) Help

func (c *CreateCommand) Help() string

Help method displays info about command

func (*CreateCommand) Run

func (c *CreateCommand) Run(args []string) int

Run method executes the command

func (*CreateCommand) Synopsis

func (c *CreateCommand) Synopsis() string

Synopsis method show short description about command

type DownCommand

type DownCommand struct {
	AbstractCommand
}

DownCommand is command for rollback last migrations

func NewDownCommand

func NewDownCommand(service serviceContract) *DownCommand

NewDownCommand returns command instance

func (*DownCommand) Help

func (c *DownCommand) Help() string

Help method displays info about command

func (*DownCommand) Run

func (c *DownCommand) Run(args []string) int

Run method executes the command

func (*DownCommand) Synopsis

func (c *DownCommand) Synopsis() string

Synopsis method show short description about command

type InitCommand

type InitCommand struct {
	AbstractCommand
}

InitCommand is command for initialize utility (create folder and table for migrations)

func NewInitCommand

func NewInitCommand(service serviceContract) *InitCommand

NewInitCommand returns command instance

func (*InitCommand) Help

func (c *InitCommand) Help() string

Help method displays info about command

func (*InitCommand) Run

func (c *InitCommand) Run(args []string) int

Run method executes the command

func (*InitCommand) Synopsis

func (c *InitCommand) Synopsis() string

Synopsis method show short description about command

type RefreshCommand

type RefreshCommand struct {
	AbstractCommand
}

RefreshCommand is command for cleaning of all migrations and roll out them over again

func NewRefreshCommand

func NewRefreshCommand(service serviceContract) *RefreshCommand

NewRefreshCommand returns command instance

func (*RefreshCommand) Help

func (c *RefreshCommand) Help() string

Help method displays info about command

func (*RefreshCommand) Run

func (c *RefreshCommand) Run(args []string) int

Run method executes the command

func (*RefreshCommand) Synopsis

func (c *RefreshCommand) Synopsis() string

Synopsis method show short description about command

type UpCommand

type UpCommand struct {
	AbstractCommand
}

UpCommand is command for roll out migrations

func NewUpCommand

func NewUpCommand(service serviceContract) *UpCommand

NewUpCommand returns command instance

func (*UpCommand) Help

func (c *UpCommand) Help() string

Help method displays info about command

func (*UpCommand) Run

func (c *UpCommand) Run(args []string) int

Run method executes the command

func (*UpCommand) Synopsis

func (c *UpCommand) Synopsis() string

Synopsis method show short description about command

Jump to

Keyboard shortcuts

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