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

35 lines (34 loc) 889 B
import { AxioDB } from '../../Services/Indexation.operation'; import { TCPResponse } from '../types/protocol.types'; import { RequestContext } from '../connection/RequestContext'; /** * Command Handler - Main dispatcher for TCP commands * Routes commands to appropriate handlers */ export declare class CommandHandler { private axioDB; private dbHandler; private collectionHandler; private operationHandler; constructor(axioDB: AxioDB); /** * Handle incoming TCP request */ handleRequest(context: RequestContext): Promise<TCPResponse>; /** * Route command to appropriate handler */ private routeCommand; /** * Handle PING command */ private handlePing; /** * Handle DISCONNECT command */ private handleDisconnect; /** * Create error response */ private createErrorResponse; }