/** * @nahisaho/musubix-codegraph - SQLite Storage Implementation * * Persistent SQLite-based storage adapter for CodeGraph * * @see REQ-CG-API-005 * @see DES-CG-006 * @see TSK-CG-052 */ import type { StorageAdapter, StorageStats, Entity, Relation, GraphQuery } from '../types.js'; /** * SQLite storage adapter * * Stores entities and relations in SQLite database for persistence. * * @example * ```typescript * const storage = new SQLiteStorage('.codegraph/index.db'); * await storage.initialize(); * * await storage.saveEntity(entity); * const retrieved = await storage.getEntity(entity.id); * ``` */ export declare class SQLiteStorage implements StorageAdapter { private dbPath; private db; private initialized; constructor(dbPath?: string); /** * Initialize the database */ initialize(): Promise; /** * Close the database connection */ close(): Promise; /** * Save an entity */ saveEntity(entity: Entity): Promise; /** * Get an entity by ID */ getEntity(id: string): Promise; /** * Query entities */ queryEntities(query: GraphQuery): Promise; /** * Delete an entity */ deleteEntity(id: string): Promise; /** * Save a relation */ saveRelation(relation: Relation): Promise; /** * Get relations for an entity */ getRelations(entityId: string, direction?: 'in' | 'out' | 'both'): Promise; /** * Delete a relation */ deleteRelation(id: string): Promise; /** * Bulk save entities and relations */ bulkSave(entities: Entity[], relations: Relation[]): Promise; /** * Clear all data */ clear(): Promise; /** * Get storage statistics */ getStats(): Promise; private ensureInitialized; private rowToEntity; private rowToRelation; /** * Check if storage is initialized */ isInitialized(): boolean; /** * Get database path */ getDatabasePath(): string; } //# sourceMappingURL=sqlite-storage.d.ts.map