skip to the page

@jam-overture/loom/signals/postgres

The Postgres buffer and counters, for a deployment that keeps what its readers did.

Everything below is exported from that import. The names, the signatures and the sentences are read from the package itself rather than written here, so this page says what the copy of Loom in your node_modules says — and it changes in the same pull request the code does.

5 exports, in 2 modules. Generated from ./dist/signals/postgres.d.ts, which is the declaration file this package publishes for @jam-overture/loom/signals/postgres. Each comment inside a declaration is shown as its first paragraph. The whole of it is in that file.

Install this first. @jam-overture/loom/signals/postgres loads it the moment the import runs. Without it, the import itself fails — before any of your own code has run.

  • drizzle-orm^0.45.2optional peer dependency
pnpm add drizzle-orm

No import here has everything behind it. @jam-overture/loom/signals/postgres publishes 5 of the 2,237 names this package publishes. The other 2,232 are behind one of the 19 other imports, and not one of those imports publishes a single name this one does. The imports do not nest: a name that is not on this page is not a name that does not exist, and the search at the top of the page says which import it comes from.

Migrate

signals/migrate

Creating the seven reader-signal tables, with row level security switched on.

READER_SIGNALS_DDLvalue

The nine tables, as statements a host can run.

const READER_SIGNALS_DDL: readonly string[]

ensureReaderSignalsSchemafunction

Idempotent, so running it against a populated database is a no-op.

Shown in use on What your readers do — Where a batch goes after that

const ensureReaderSignalsSchema: (db: LoomDatabase) => Promise<void>

Postgres

signals/postgres

The Drizzle tables are **not** re-exported, unlike the journal's.

postgresReaderSignalJournalfunction

Every read is filtered by the application this handle speaks for, and every write sets it.

Shown in use on What your readers do — Where a batch goes after that

const postgresReaderSignalJournal: (db: LoomDatabase, scope?: StoreScope) => ReaderSignalJournal

postgresReaderTallyStorefunction

Scoped on the same terms as the journal — see its note.

const postgresReaderTallyStore: (db: LoomDatabase, scope?: StoreScope) => ReaderTallyStore

postgresReaderRegionStorefunction

Scoped on the same terms as the journal — see its note.

const postgresReaderRegionStore: (db: LoomDatabase, scope?: StoreScope) => ReaderRegionStore