asEphemeral
asEphemeral<
TEntry>(entry):TEntry
Defined in: packages/contracts/src/projection.ts:114
The named ephemeral lifecycle projection — withRetention(entry, "ephemeral") — the lifecycle twin of
asReadonly, for the common direction (a client wants no durable trace of a table the authoritative
registry keeps persistent). Composes with asReadonly: asEphemeral(asReadonly(authoritative.exam))
is a read-only, no-durable-trace projection. The reverse direction (an ephemeral authoritative table a
client wants durable) is the bidirectional withRetention with "persistent". See
withRetention for the constraints that carry over (group uniformity; no durable offline queue).
Type Parameters
Section titled “Type Parameters”TEntry
Section titled “TEntry”TEntry extends SyncTableEntry<AnyPgTable, AnyPgTable>
Parameters
Section titled “Parameters”TEntry
Returns
Section titled “Returns”TEntry