| 2 | * Core persistence adapter interface |
| 3 | */ |
| 4 | export interface PersistenceAdapter { |
| 5 | insert<T>(entityType: string, data: T): Promise<T>; |
| 6 | update<T>(entityType: string, id: string, data: Partial<T>): Promise<T>; |
| 7 | delete(entityType: string, id: string): Promise<void>; |
| 8 | findById<T>(entityType: string, id: string): Promise<T>; |
| 9 | // Optional methods - implement as needed |
| 10 | deleteMany?(entityType: string, ids: string[]): Promise<void>; |
| 11 | findMany?<T>(entityType: string, query?: Record<string, unknown>): Promise<T[]>; |
| 12 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…