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
16 lines (15 loc) • 750 B
TypeScript
import ActiveRecordEntity from "./ActiveRecordEntity";
import DataMapperEntity from "./DataMapperEntity";
import DataSource from "./DataSource";
type DataMapperEntityConfig = {
ajvOptions?: any;
fieldMap?: Record<string, string>;
};
type EntityConfig = {
methods?: Record<string, Function>;
ajvOptions?: any;
fieldMap?: Record<string, string>;
};
export declare function createActiveRecordEntity(name: string, type: string, schemaOrSchemaId: string | object, dataSource: DataSource, config: EntityConfig): Promise<typeof ActiveRecordEntity>;
export declare function createDataMapperEntity(name: string, type: string, schemaOrSchemaId: string | object, config: DataMapperEntityConfig): Promise<typeof DataMapperEntity>;
export {};