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

Function upload

packages/sql/pg/test/SqlEventJournal.integration.test.ts:218–220  ·  view source on GitHub ↗
(remoteId: EventJournal.RemoteId)

Source from the content-addressed store, hash-verified

216 )
217 }
218 const upload = (remoteId: EventJournal.RemoteId) =>
219 journals[0].withRemoteUncommited(remoteId, (entries) =>
220 Effect.succeed(entries.map((entry) => entry.primaryKey).sort()))
221 assert.deepStrictEqual(yield* upload(remoteA), Option.some(["fromB", "pending"]))
222 assert.deepStrictEqual(yield* upload(remoteB), Option.some(["fromA", "pending"]))
223 const [{ legacy }] = yield* sql<{ legacy: string | null }>`

Calls 2

succeedMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected