MariaDbSchemaState
class MariaDbSchemaState extends MySqlSchemaState
Properties
| MySqlConnection | $connection | from MySqlSchemaState | |
| protected Filesystem | $files | The filesystem instance. |
from SchemaState |
| protected string|null | $migrationTable | The name of the application's migration table. |
from SchemaState |
| protected Closure | $processFactory | The process factory callback. |
from SchemaState |
| protected mixed | $output | The output callable instance. |
from SchemaState |
Methods
Create a new dumper instance.
Load the given schema file into the database.
Get the base variables for a dump / load command.
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 MariaDB as a string.
Generate a basic connection string (--socket, --host, --port, --user, --password) for the database.
Execute the given dump process.
Detect the MariaDB client version.
Details
in
SchemaState at line 42
__construct(Connection $connection, Filesystem|null $files = null, callable|null $processFactory = null)
Create a new dumper instance.
in
MySqlSchemaState at line 24
void
dump(Connection $connection, string $path)
Dump the database's schema into a file.
at line 15
void
load(string $path)
Load the given schema file into the database.
in
MySqlSchemaState at line 144
protected array
baseVariables(array $config)
Get the base variables for a dump / load command.
in
SchemaState at line 77
Process
makeProcess(mixed ...$arguments)
Create a new process instance.
in
SchemaState at line 85
bool
hasMigrationTable()
Determine if the current connection has a migration table.
in
SchemaState at line 95
protected string
getMigrationTable()
Get the name of the application's migration table.
in
SchemaState at line 103
SchemaState
withMigrationTable(string|null $table)
Specify the name of the application's migration table.
in
SchemaState at line 113
SchemaState
handleOutputUsing(callable $output)
Specify the callback that should be used to handle process output.
in
MySqlSchemaState at line 43
protected void
removeAutoIncrementingState(string $path)
Remove the auto-incrementing state from the given schema dump.
in
MySqlSchemaState at line 55
protected void
appendMigrationData(string $path)
Append the migration data to the schema dump.
at line 32
protected string
baseDumpCommand()
Get the base dump command arguments for MariaDB as a string.
in
MySqlSchemaState at line 102
protected string
connectionString(array $versionInfo)
Generate a basic connection string (--socket, --host, --port, --user, --password) for the database.
in
MySqlSchemaState at line 167
protected Process
executeDumpProcess(Process $process, callable|null $output, array $variables, int $depth = 0)
Execute the given dump process.
at line 47
protected array
detectClientVersion()
Detect the MariaDB client version.