UNPKG

@palmares/databases

Version:

Add support for working with databases with palmares framework

16 lines 831 B
import type { DatabaseAdapter } from '../engine'; /** * This is the default function when we want to duplicate the engine. * * It will receive an engine and it will return a callback function that should be * called inside of the {@link DatabaseAdapter.duplicate} function. This is the default * behavior of the duplicate function. * * @param engine - The engine that we want to duplicate. * * @returns - The default duplicate function that should be called inside {@link DatabaseAdapter}. */ export declare function defaultEngineDuplicate(engine: DatabaseAdapter, wasCalled?: { value: boolean; }): () => Promise<DatabaseAdapter<any, import("./fields").AdapterFields, import("./model").AdapterModels<any>, import("./query").AdapterQuery, import("./migrations").AdapterMigrations>>; //# sourceMappingURL=utils.d.ts.map