UNPKG

@codai/cbd

Version:

Codai Better Database - High-Performance Vector Memory System with HPKV-inspired architecture and MCP server

25 lines 1.13 kB
/** * CBD SQLite Storage Adapter * Persistent storage implementation using SQLite */ import { ConversationExchange, StorageAdapter, SearchQuery, DatabaseStats } from '../types/index.js'; export declare class SQLiteStorageAdapter implements StorageAdapter { private db; private databasePath; constructor(databasePath: string); connect(): Promise<void>; disconnect(): Promise<void>; private createTables; storeConversation(exchange: ConversationExchange): Promise<string>; getConversation(structuredKey: string): Promise<ConversationExchange | null>; searchConversations(query: SearchQuery): Promise<ConversationExchange[]>; updateConversation(structuredKey: string, updates: Partial<ConversationExchange>): Promise<boolean>; deleteConversation(structuredKey: string): Promise<boolean>; getStats(): Promise<DatabaseStats>; /** * Get the next sequence number for a project/session combination */ getNextSequenceNumber(projectName: string, sessionName: string): Promise<number>; private mapRowToExchange; } //# sourceMappingURL=SQLiteStorageAdapter.d.ts.map