console

package
v1.13.8 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 26 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChangePatterns = []string{
	`_(to|from|in)_(\w+)_table$`,
	`_(to|from|in)_(\w+)$`,
}
View Source
var CreatePatterns = []string{
	`^create_(\w+)_table$`,
	`^create_(\w+)$`,
}

Functions

This section is empty.

Types

type FactoryMakeCommand added in v1.13.0

type FactoryMakeCommand struct {
}

func NewFactoryMakeCommand added in v1.13.0

func NewFactoryMakeCommand() *FactoryMakeCommand

func (*FactoryMakeCommand) Description added in v1.13.0

func (receiver *FactoryMakeCommand) Description() string

Description The console command description.

func (*FactoryMakeCommand) Extend added in v1.13.0

func (receiver *FactoryMakeCommand) Extend() command.Extend

Extend The console command extend.

func (*FactoryMakeCommand) Handle added in v1.13.0

func (receiver *FactoryMakeCommand) Handle(ctx console.Context) error

Handle Execute the console command.

func (*FactoryMakeCommand) Signature added in v1.13.0

func (receiver *FactoryMakeCommand) Signature() string

Signature The name and signature of the console command.

type MigrateCommand

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

func NewMigrateCommand added in v1.12.0

func NewMigrateCommand(config config.Config) *MigrateCommand

func (*MigrateCommand) Description

func (receiver *MigrateCommand) Description() string

Description The console command description.

func (*MigrateCommand) Extend

func (receiver *MigrateCommand) Extend() command.Extend

Extend The console command extend.

func (*MigrateCommand) Handle

func (receiver *MigrateCommand) Handle(ctx console.Context) error

Handle Execute the console command.

func (*MigrateCommand) Signature

func (receiver *MigrateCommand) Signature() string

Signature The name and signature of the console command.

type MigrateCreator

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

func NewMigrateCreator added in v1.12.0

func NewMigrateCreator(config config.Config) *MigrateCreator

func (MigrateCreator) Create

func (receiver MigrateCreator) Create(name string, table string, create bool) error

Create a new migration

type MigrateFreshCommand added in v1.12.0

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

func NewMigrateFreshCommand added in v1.12.0

func NewMigrateFreshCommand(config config.Config, artisan console.Artisan) *MigrateFreshCommand

func (*MigrateFreshCommand) Description added in v1.12.0

func (receiver *MigrateFreshCommand) Description() string

Description The console command description.

func (*MigrateFreshCommand) Extend added in v1.12.0

func (receiver *MigrateFreshCommand) Extend() command.Extend

Extend The console command extend.

func (*MigrateFreshCommand) Handle added in v1.12.0

func (receiver *MigrateFreshCommand) Handle(ctx console.Context) error

Handle Execute the console command.

func (*MigrateFreshCommand) Signature added in v1.12.0

func (receiver *MigrateFreshCommand) Signature() string

Signature The name and signature of the console command.

type MigrateMakeCommand

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

func NewMigrateMakeCommand added in v1.12.0

func NewMigrateMakeCommand(config config.Config) *MigrateMakeCommand

func (*MigrateMakeCommand) Description

func (receiver *MigrateMakeCommand) Description() string

Description The console command description.

func (*MigrateMakeCommand) Extend

func (receiver *MigrateMakeCommand) Extend() command.Extend

Extend The console command extend.

func (*MigrateMakeCommand) Handle

func (receiver *MigrateMakeCommand) Handle(ctx console.Context) error

Handle Execute the console command.

func (*MigrateMakeCommand) Signature

func (receiver *MigrateMakeCommand) Signature() string

Signature The name and signature of the console command.

type MigrateRefreshCommand added in v1.12.0

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

func NewMigrateRefreshCommand added in v1.12.0

func NewMigrateRefreshCommand(config config.Config, artisan console.Artisan) *MigrateRefreshCommand

func (*MigrateRefreshCommand) Description added in v1.12.0

func (receiver *MigrateRefreshCommand) Description() string

Description The console command description.

func (*MigrateRefreshCommand) Extend added in v1.12.0

func (receiver *MigrateRefreshCommand) Extend() command.Extend

Extend The console command extend.

func (*MigrateRefreshCommand) Handle added in v1.12.0

func (receiver *MigrateRefreshCommand) Handle(ctx console.Context) error

Handle Execute the console command.

func (*MigrateRefreshCommand) Signature added in v1.12.0

func (receiver *MigrateRefreshCommand) Signature() string

Signature The name and signature of the console command.

type MigrateResetCommand added in v1.12.0

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

func NewMigrateResetCommand added in v1.12.0

func NewMigrateResetCommand(config config.Config) *MigrateResetCommand

func (*MigrateResetCommand) Description added in v1.12.0

func (receiver *MigrateResetCommand) Description() string

Description The console command description.

func (*MigrateResetCommand) Extend added in v1.12.0

func (receiver *MigrateResetCommand) Extend() command.Extend

Extend The console command extend.

func (*MigrateResetCommand) Handle added in v1.12.0

func (receiver *MigrateResetCommand) Handle(ctx console.Context) error

Handle Execute the console command.

func (*MigrateResetCommand) Signature added in v1.12.0

func (receiver *MigrateResetCommand) Signature() string

Signature The name and signature of the console command.

type MigrateRollbackCommand

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

func NewMigrateRollbackCommand added in v1.12.0

func NewMigrateRollbackCommand(config config.Config) *MigrateRollbackCommand

func (*MigrateRollbackCommand) Description

func (receiver *MigrateRollbackCommand) Description() string

Description The console command description.

func (*MigrateRollbackCommand) Extend

func (receiver *MigrateRollbackCommand) Extend() command.Extend

Extend The console command extend.

func (*MigrateRollbackCommand) Handle

func (receiver *MigrateRollbackCommand) Handle(ctx console.Context) error

Handle Execute the console command.

func (*MigrateRollbackCommand) Signature

func (receiver *MigrateRollbackCommand) Signature() string

Signature The name and signature of the console command.

type MigrateStatusCommand added in v1.12.0

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

func NewMigrateStatusCommand added in v1.12.0

func NewMigrateStatusCommand(config config.Config) *MigrateStatusCommand

func (*MigrateStatusCommand) Description added in v1.12.0

func (receiver *MigrateStatusCommand) Description() string

Description The console command description.

func (*MigrateStatusCommand) Extend added in v1.12.0

func (receiver *MigrateStatusCommand) Extend() command.Extend

Extend The console command extend.

func (*MigrateStatusCommand) Handle added in v1.12.0

func (receiver *MigrateStatusCommand) Handle(ctx console.Context) error

Handle Execute the console command.

func (*MigrateStatusCommand) Signature added in v1.12.0

func (receiver *MigrateStatusCommand) Signature() string

Signature The name and signature of the console command.

type ModelMakeCommand added in v1.9.0

type ModelMakeCommand struct {
}

func NewModelMakeCommand added in v1.12.0

func NewModelMakeCommand() *ModelMakeCommand

func (*ModelMakeCommand) Description added in v1.9.0

func (receiver *ModelMakeCommand) Description() string

Description The console command description.

func (*ModelMakeCommand) Extend added in v1.9.0

func (receiver *ModelMakeCommand) Extend() command.Extend

Extend The console command extend.

func (*ModelMakeCommand) Handle added in v1.9.0

func (receiver *ModelMakeCommand) Handle(ctx console.Context) error

Handle Execute the console command.

func (*ModelMakeCommand) Signature added in v1.9.0

func (receiver *ModelMakeCommand) Signature() string

Signature The name and signature of the console command.

type MysqlStubs added in v1.8.0

type MysqlStubs struct {
}

func (MysqlStubs) CreateDown added in v1.8.0

func (receiver MysqlStubs) CreateDown() string

CreateDown Create down migration content.

func (MysqlStubs) CreateUp added in v1.8.0

func (receiver MysqlStubs) CreateUp() string

CreateUp Create up migration content.

func (MysqlStubs) UpdateDown added in v1.8.0

func (receiver MysqlStubs) UpdateDown() string

UpdateDown Update down migration content.

func (MysqlStubs) UpdateUp added in v1.8.0

func (receiver MysqlStubs) UpdateUp() string

UpdateUp Update up migration content.

type ObserverMakeCommand added in v1.11.0

type ObserverMakeCommand struct {
}

func NewObserverMakeCommand added in v1.12.0

func NewObserverMakeCommand() *ObserverMakeCommand

func (*ObserverMakeCommand) Description added in v1.11.0

func (receiver *ObserverMakeCommand) Description() string

Description The console command description.

func (*ObserverMakeCommand) Extend added in v1.11.0

func (receiver *ObserverMakeCommand) Extend() command.Extend

Extend The console command extend.

func (*ObserverMakeCommand) Handle added in v1.11.0

func (receiver *ObserverMakeCommand) Handle(ctx console.Context) error

Handle Execute the console command.

func (*ObserverMakeCommand) Signature added in v1.11.0

func (receiver *ObserverMakeCommand) Signature() string

Signature The name and signature of the console command.

type PostgresqlStubs added in v1.8.0

type PostgresqlStubs struct {
}

func (PostgresqlStubs) CreateDown added in v1.8.0

func (receiver PostgresqlStubs) CreateDown() string

CreateDown Create down migration content.

func (PostgresqlStubs) CreateUp added in v1.8.0

func (receiver PostgresqlStubs) CreateUp() string

CreateUp Create up migration content.

func (PostgresqlStubs) UpdateDown added in v1.8.0

func (receiver PostgresqlStubs) UpdateDown() string

UpdateDown Update down migration content.

func (PostgresqlStubs) UpdateUp added in v1.8.0

func (receiver PostgresqlStubs) UpdateUp() string

UpdateUp Update up migration content.

type SeedCommand added in v1.12.6

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

func NewSeedCommand added in v1.12.6

func NewSeedCommand(config config.Config, seeder seeder.Facade) *SeedCommand

func (*SeedCommand) ConfirmToProceed added in v1.12.6

func (receiver *SeedCommand) ConfirmToProceed(force bool) error

ConfirmToProceed determines if the command should proceed based on user confirmation.

func (*SeedCommand) Description added in v1.12.6

func (receiver *SeedCommand) Description() string

Description The console command description.

func (*SeedCommand) Extend added in v1.12.6

func (receiver *SeedCommand) Extend() command.Extend

Extend The console command extend.

func (*SeedCommand) GetSeeders added in v1.12.6

func (receiver *SeedCommand) GetSeeders(names []string) ([]seeder.Seeder, error)

GetSeeders returns a seeder instances

func (*SeedCommand) Handle added in v1.12.6

func (receiver *SeedCommand) Handle(ctx console.Context) error

Handle executes the console command.

func (*SeedCommand) Signature added in v1.12.6

func (receiver *SeedCommand) Signature() string

Signature The name and signature of the console command.

type SeederMakeCommand added in v1.12.6

type SeederMakeCommand struct {
}

func NewSeederMakeCommand added in v1.12.6

func NewSeederMakeCommand() *SeederMakeCommand

func (*SeederMakeCommand) Description added in v1.12.6

func (receiver *SeederMakeCommand) Description() string

Description The console command description.

func (*SeederMakeCommand) Extend added in v1.12.6

func (receiver *SeederMakeCommand) Extend() command.Extend

Extend The console command extend.

func (*SeederMakeCommand) Handle added in v1.12.6

func (receiver *SeederMakeCommand) Handle(ctx console.Context) error

Handle Execute the console command.

func (*SeederMakeCommand) Signature added in v1.12.6

func (receiver *SeederMakeCommand) Signature() string

Signature The name and signature of the console command.

type SqliteStubs added in v1.8.0

type SqliteStubs struct {
}

func (SqliteStubs) CreateDown added in v1.8.0

func (receiver SqliteStubs) CreateDown() string

CreateDown Create down migration content.

func (SqliteStubs) CreateUp added in v1.8.0

func (receiver SqliteStubs) CreateUp() string

CreateUp Create up migration content.

func (SqliteStubs) UpdateDown added in v1.8.0

func (receiver SqliteStubs) UpdateDown() string

UpdateDown Update down migration content.

func (SqliteStubs) UpdateUp added in v1.8.0

func (receiver SqliteStubs) UpdateUp() string

UpdateUp Update up migration content.

type SqlserverStubs added in v1.8.0

type SqlserverStubs struct {
}

func (SqlserverStubs) CreateDown added in v1.8.0

func (receiver SqlserverStubs) CreateDown() string

CreateDown Create down migration content.

func (SqlserverStubs) CreateUp added in v1.8.0

func (receiver SqlserverStubs) CreateUp() string

CreateUp Create up migration content.

func (SqlserverStubs) UpdateDown added in v1.8.0

func (receiver SqlserverStubs) UpdateDown() string

UpdateDown Update down migration content.

func (SqlserverStubs) UpdateUp added in v1.8.0

func (receiver SqlserverStubs) UpdateUp() string

UpdateUp Update up migration content.

type Stubs added in v1.9.0

type Stubs struct {
}

func (Stubs) Factory added in v1.13.0

func (r Stubs) Factory() string

func (Stubs) Model added in v1.9.0

func (r Stubs) Model() string

func (Stubs) Observer added in v1.11.0

func (r Stubs) Observer() string

func (Stubs) Seeder added in v1.12.6

func (r Stubs) Seeder() string

type TableGuesser

type TableGuesser struct {
}

func (TableGuesser) Guess

func (receiver TableGuesser) Guess(migration string) (string, bool)

Guess Attempt to guess the table name and "creation" status of the given migration, return table, create.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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