Provides a database agnostic service for processing migrations in JavaScript. Read the docs for more information.
- Install it with
npm i @js-migrations/core
. - Create a repository facade.
- Use the factory to create the service facade.
- Use the service facade by understanding the docs or trying one of the supported presenters.
This package contains the RepoFacade TypeScript interface. You can create a facade to match the interface using the factories below.
import migrationsServiceFactory from '@js-migrations/core/dist/factory';
const migrationsServiceFacade = migrationsServiceFactory({
repo: migrationsRepoFacade,
});
The service facade is used by the following packages that provide a presentation layer to the service.