UNPKG

@palmares/databases

Version:

Add support for working with databases with palmares framework

21 lines 1.04 kB
import { Manager } from '../models'; import type { PalmaresMigrations } from './models'; export declare class PalmaresMigrationsManager extends Manager<PalmaresMigrations> { /** * Creates a new migration in the database. This way we can know what migrations have was evaluated and what migration * still needs to be evaluated. * * @param migrationName - The name of the migration file that was evaluated. * @param engineName - The name of the engine from which this migration was created. */ createMigration(migrationName: string, engineName: string): Promise<import("../queries/queryset").GetDataFromModel<PalmaresMigrations, "read">[]>; /** * Retrieves the last migration that was evaluated for a given engine. * * @param engineName - The name of the engine to create this migration for. * * @return - An empty '' string or the name of the last migration. */ getLastMigrationName(engineName: string): Promise<string>; } //# sourceMappingURL=managers.d.ts.map