UNPKG

@palmares/databases

Version:

Add support for working with databases with palmares framework

21 lines 667 B
import type { DatabaseAdapter } from '../engine'; export type QueryDataFnType = ((engine: DatabaseAdapter, args: { modelOfEngineInstance: any; search: any; data: any; transaction?: any; }) => Promise<[boolean, any][]>) | ((engine: DatabaseAdapter, args: { modelOfEngineInstance: any; search: any; shouldReturnData?: boolean; shouldRemove?: boolean; transaction?: any; }) => Promise<any>) | ((engine: DatabaseAdapter, args: { modelOfEngineInstance: any; search: any; fields: readonly string[]; ordering?: any; limit?: number; offset?: number | string; }) => Promise<any>); //# sourceMappingURL=types.d.ts.map