UNPKG

nosqlax

Version:

NoSQLax is a modern, lightweight JavaScript Object Document Mapper(ODM) library that makes working with CouchDB a breeze. Inspired by CouchDB’s “Relax” philosophy and the chill vibes of Snorlax, NoSQLax takes the hassle out of managing your data, offering

17 lines (16 loc) 536 B
import BaseEntity from "./BaseEntity"; import DataSource from "./DataSource"; import CouchRepository from "./CouchRepository"; type RepoConfig = { methods?: Record<string, Function>; ajvOptions?: any; }; type EntityClass = { fieldMap: Record<string, string>; new (data: Record<string, any>): BaseEntity; schemaOrSchemaId: string | object; type: string; [key: string]: any; }; export default function createRepository(entityClass: EntityClass, ds: DataSource, config: RepoConfig): CouchRepository; export {};