Class: SchemaProviderFactory
Full name: Azera\Sync\Schema\SchemaProviderFactory
Factory for creating the correct SchemaProvider for a given
SQL connection based on its driver name.
Shared by the model-sync machinery (SyncRunner) and
the CLI Database inspection task (DbTask) so
that driver→provider mapping lives in exactly one place.
Public methods
create() ·
public static function create(Azera\Db\Database $db): Azera\Sync\Schema\SchemaProvider
Create a SchemaProvider for the given SQL connection.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$db |
Database | - | A connected Database instance. |
Return value
- Type: SchemaProvider
- Description: The provider matching the connection's driver.
Throws
- RuntimeException If the driver has no registered provider.