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

32 lines (31 loc) 858 B
import { AxioDBCloud } from './AxioDBCloud.client'; import CollectionProxy from './CollectionProxy'; /** * Database Proxy - Remote proxy for Database operations * Mirrors the Database class API */ export default class DatabaseProxy { private client; private dbName; constructor(client: AxioDBCloud, dbName: string); /** * Create a collection in the database */ createCollection(name: string, crypto?: boolean, key?: string): Promise<CollectionProxy>; /** * Delete a collection from the database */ deleteCollection(name: string): Promise<void>; /** * Check if collection exists */ isCollectionExists(name: string): Promise<boolean>; /** * Get collection information */ getCollectionInfo(): Promise<any>; /** * Get database name */ get name(): string; }