UNPKG

@palmares/databases

Version:

Add support for working with databases with palmares framework

15 lines 866 B
import type { DatabaseDomainInterface } from '../interfaces'; import type { DatabaseSettingsType, InitializedEngineInstancesType, OptionalMakemigrationsArgsType } from '../types'; /** * Used for working with anything related to migrations inside of the project, from the automatic creation of migrations * to running the migrations and making the application and the database in sync. */ export declare class Migrations { #private; settings: DatabaseSettingsType; domains: DatabaseDomainInterface[]; constructor(settings: DatabaseSettingsType, domains: DatabaseDomainInterface[]); makeMigrations(initializedEngineInstances: InitializedEngineInstancesType, optionalArgs: OptionalMakemigrationsArgsType): Promise<void>; migrate(initializedEngineInstances: InitializedEngineInstancesType): Promise<void>; } //# sourceMappingURL=index.d.ts.map