/** * Adapter exposing a live LadybugDB instance as a `@codragraph/graphstore` * `RowSource`. Used by the analyze pipeline (Phase 4) to snapshot the * loaded graph into the content-addressed store. * * Best-effort by design: any table that errors at query time is skipped * (with the failure surfaced through the optional `onSkip` callback) so * the surrounding analyze flow never breaks because the versioning hook * misbehaves. */ import type { RowSource } from '@codragraph/graphstore'; import { type NodeTableName } from '../../_shared/index.js'; export interface CgdbRowSourceOptions { /** Filter the node tables enumerated by `listNodeTables` — defaults to every NODE_TABLE. */ readonly nodeTables?: readonly NodeTableName[]; /** Called with `(table, error)` when a table query fails — defaults to a no-op. */ readonly onSkip?: (tableName: string, error: unknown) => void; } export declare const createCgdbRowSource: (opts?: CgdbRowSourceOptions) => RowSource;