SqliteSchemaState
class SqliteSchemaState 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
__construct(Connection $connection, Filesystem|null $files = null, callable|null $processFactory = null)
Create a new dumper instance.
from
SchemaState
void
void
load(string $path)
Load the given schema file into the database.
bool
hasMigrationTable()
Determine if the current connection has a migration table.
from
SchemaState
$this
withMigrationTable(string $table)
Specify the name of the application's migration table.
from
SchemaState
$this
handleOutputUsing(callable $output)
Specify the callback that should be used to handle process output.
from
SchemaState
void
appendMigrationData(string $path)
Append the migration data to the schema dump.
string
baseCommand()
Get the base sqlite command arguments as a string.
array
baseVariables(array $config)
Get the base variables for a dump / load command.
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.