MySqlSchemaState
class MySqlSchemaState extends SchemaState (View source)
Properties
protected Connection | $connection | The connection instance. |
from SchemaState |
protected Filesystem | $files | The filesystem instance. |
from SchemaState |
protected string | $migrationTable | The name of the application's migration table. |
from SchemaState |
protected callable | $processFactory | The process factory callback. |
from SchemaState |
protected callable | $output | The output callable instance. |
from SchemaState |
Methods
Create a new dumper instance.
Load the given schema file into the database.
Determine if the current connection has a migration table.
Specify the name of the application's migration table.
Specify the callback that should be used to handle process output.
Remove the auto-incrementing state from the given schema dump.
Append the migration data to the schema dump.
Get the base dump command arguments for MySQL as a string.
Generate a basic connection string (--socket, --host, --port, --user, --password) for the database.
Get the base variables for a dump / load command.
Execute the given dump process.
Details
__construct(Connection $connection, Filesystem|null $files = null, callable|null $processFactory = null)
Create a new dumper instance.
$this
handleOutputUsing(callable $output)
Specify the callback that should be used to handle process output.
protected void
removeAutoIncrementingState(string $path)
Remove the auto-incrementing state from the given schema dump.
protected string
connectionString()
Generate a basic connection string (--socket, --host, --port, --user, --password) for the database.