Skip to content

OverlayTable

OverlayTable<TEntry> = PgTableWithColumns<{ columns: EntryColumns<TEntry> & OverlayFixedColumns; dialect: "pg"; name: string; schema: string | undefined; }>

Defined in: packages/client/src/local-tables.ts:196

The <t>_overlay optimistic-intent table: the entry’s PROJECTED columns (same builders the generator and entry.localTable carry) merged with the two fixed overlay columns. The entity columns read back through real drizzle result mapping, so their types mirror the projected table exactly (a mode: "bigint" column is bigint, etc.). The two overlay columns are bigintText passthrough (local_updated_at_us reads as a string). TEntry defaults to a bare entry, giving the open index-signature form the mutation runtime (generic over any registry) needs.

TEntry = SyncTableEntry