Documentation ¶
Overview ¶
Package cmd provides a set of commands used in CLI.
Index ¶
Constants ¶
const ( // ErrCodeArg when the CLI argument is invalid. ErrCodeArg = 101 // ErrCodeMigration when the migration operation fails. ErrCodeMigration = 103 // ErrCodeCommand when the SQL command operation fails. ErrCodeCommand = 104 // ErrCodeSchema when the SQL schema operation fails. ErrCodeSchema = 105 )
Variables ¶
This section is empty.
Functions ¶
func BeforeEach ¶
BeforeEach is a function executed before each CLI operation.
Types ¶
type SQLMigration ¶
type SQLMigration struct {
// contains filtered or unexported fields
}
SQLMigration provides a subcommands to work with SQL migrations.
func (*SQLMigration) CreateCommand ¶
func (m *SQLMigration) CreateCommand() *cli.Command
CreateCommand creates a cli.Command that can be used by cli.App.
type SQLModel ¶
type SQLModel struct {
// contains filtered or unexported fields
}
SQLModel provides a subcommands to work generate structs from existing schema
func (*SQLModel) CreateCommand ¶
CreateCommand creates a cli.Command that can be used by cli.App.
type SQLRepository ¶
type SQLRepository struct {
// contains filtered or unexported fields
}
SQLRepository provides a subcommands to work generate repository from existing schema
func (*SQLRepository) CreateCommand ¶
func (m *SQLRepository) CreateCommand() *cli.Command
CreateCommand creates a cli.Command that can be used by cli.App.
type SQLRoutine ¶
type SQLRoutine struct {
// contains filtered or unexported fields
}
SQLRoutine provides a subcommands to work with SQL scripts and their statements.
func (*SQLRoutine) CreateCommand ¶
func (m *SQLRoutine) CreateCommand() *cli.Command
CreateCommand creates a cli.Command that can be used by cli.App.