import type { CollectorStore } from "./store.js"; /** * Optional single-tenant Postgres store (ADR 0020, #84): the relational, * multi-writer path for self-hosters who already run Postgres and have * outgrown DuckDB's single read-write process. It carries the **full** analytics * surface — no stubbed aggregates — by rendering the same dialect-agnostic * builders with {@link postgresDialect} (ASOF joins emulated via `LATERAL`, * daily rollups recomputed at query time) and executing them over a pooled * `pg` connection. Events live in the wide `events` table (plus the dedicated * `node_samples`); metadata (projects, API keys, scene registry) is re-homed * into the same database. * * The schema is migrated on creation (migrations are idempotent, forward-only * and serialized behind an advisory lock, so several collector instances can * boot against one database). Connection settings come from * `readDbSettings().postgres` (`POSTGRES_URL` / `DATABASE_URL`, `POSTGRES_SCHEMA`, * `POSTGRES_POOL_MAX`). */ export declare function createPostgresStore(): Promise; //# sourceMappingURL=postgresStore.d.ts.map