UNPKG

functional-models-orm-sql

Version:
12 lines (11 loc) 515 B
import { DataDescription, DatastoreAdapter, ModelType } from 'functional-models'; import { PropertyTypeToParser } from './types'; type WithRequired<T, K extends keyof T> = T & { [P in K]-?: T[P]; }; declare const create: ({ knex, getTableNameForModel, propertyTypeToParser, }: { knex: any; getTableNameForModel?: <T extends DataDescription>(model: ModelType<T>) => string; propertyTypeToParser?: PropertyTypeToParser; }) => WithRequired<DatastoreAdapter, "bulkInsert" | "count">; export { create };