Skip to content

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

ParameterTypeDescription
configunknownThe configuration object to validate and use for the migrator.

Returns

SQLAdapterMigrator

An instance of SQLAdapterMigrator ready for use.