Function: getSqlAdapterMigrator()
ts
function getSqlAdapterMigrator(config: unknown): SQLAdapterMigrator;
Validates and constructs a SQLAdapterMigrator instance from a configuration object. Throws a KyooInvalidConfigurationError if the configuration is invalid.
Parameters
Parameter | Type | Description |
---|---|---|
config | unknown | The configuration object to validate and use for the migrator. |
Returns
An instance of SQLAdapterMigrator ready for use.