UNPKG

axiodb

Version:

The Pure JavaScript Alternative to SQLite. Embedded NoSQL database for Node.js with MongoDB-style queries, zero native dependencies, built-in InMemoryCache, and web GUI. Perfect for desktop apps, CLI tools, and embedded systems. No compilation, no platfor

37 lines (36 loc) 887 B
import { AxioDBCloud } from './AxioDBCloud.client'; /** * Reader Proxy - Query builder for remote queries * Mirrors the Reader class API (chainable query builder) */ export default class ReaderProxy { private client; private dbName; private collectionName; private queryFilter; private limitValue?; private skipValue?; private sortValue?; private findOneValue; constructor(client: AxioDBCloud, dbName: string, collectionName: string, query: object); /** * Set limit for query results */ Limit(limit: number): this; /** * Set skip for pagination */ Skip(skip: number): this; /** * Set sort order */ Sort(sort: object): this; /** * Set findOne flag to return single document */ findOne(value: boolean): this; /** * Execute the query */ exec(): Promise<any>; }