MCPcopy Create free account
hub / github.com/Effect-TS/effect / toEntryRow

Function toEntryRow

packages/effect/src/unstable/eventlog/SqlEventJournal.ts:339–345  ·  view source on GitHub ↗
(entry: EventJournal.Entry)

Source from the content-addressed store, hash-verified

337 }, { disableChecks: true })
338
339const toEntryRow = (entry: EventJournal.Entry): EntryRow => ({
340 id: entry.id,
341 event: entry.event,
342 primary_key: entry.primaryKey,
343 payload: entry.payload,
344 timestamp: EventJournal.entryIdMillis(entry.id)
345})
346
347const RemoteRow = Schema.Struct({
348 remote_id: EventJournal.RemoteId,

Callers 1

makeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected