SchemaState
abstract class SchemaState
Traits
Properties
| protected Connection | $connection | The connection instance. |
|
| protected Filesystem | $files | The filesystem instance. |
|
| protected string|null | $migrationTable | The name of the application's migration table. |
|
| protected Closure | $processFactory | The process factory callback. |
|
| protected mixed | $output | The output callable instance. |
Methods
Stop the process if its output callback fails.
Create a new dumper instance.
Load the given schema file into the database.
Get the base variables for a dump / load command.
Create a new process instance.
Determine if the current connection has a migration table.
Get the name of the application's migration table.
Specify the name of the application's migration table.
Specify the callback that should be used to handle process output.
Details
in
GuardsProcessOutput at line 17
protected Closure|null
guardProcessOutput(Process $process, callable|null $output)
Stop the process if its output callback fails.
at line 45
__construct(Connection $connection, Filesystem|null $files = null, callable|null $processFactory = null)
Create a new dumper instance.
at line 62
abstract void
dump(Connection $connection, string $path)
Dump the database's schema into a file.
at line 67
abstract void
load(string $path)
Load the given schema file into the database.
at line 75
abstract protected array
baseVariables(array $config)
Get the base variables for a dump / load command.
at line 80
Process
makeProcess(mixed ...$arguments)
Create a new process instance.
at line 88
bool
hasMigrationTable()
Determine if the current connection has a migration table.
at line 98
protected string
getMigrationTable()
Get the name of the application's migration table.
at line 108
SchemaState
withMigrationTable(string|null $table)
Specify the name of the application's migration table.
at line 120
SchemaState
handleOutputUsing(callable $output)
Specify the callback that should be used to handle process output.