MCPcopy Create free account
hub / github.com/effect-app/libs / queryAndSavePure

Function queryAndSavePure

packages/effect-app/src/Model/Repository/ext.ts:164–173  ·  view source on GitHub ↗
(q, pure, batch?: "batched" | number)

Source from the content-addressed store, hash-verified

162 batch: "batched" | number
163 ): Effect.Effect<
164 A[],
165 PureStoreError | E2,
166 | RSchema
167 | RPublish
168 | Exclude<R2, {
169 env: PureEnv<Evt, readonly T[], readonly T2[]>
170 }>
171 >
172 } = ((q: any, pure: any, batch?: "batched" | number) =>
173 // Overload dispatch: query returns T | T[]; pure helpers are generic on item shape.
174 // Runtime path is query → pure term → saveAndPublish (which raises DatabaseError).
175 repo.query(q).pipe(
176 Effect.andThen((_) =>

Callers

nothing calls this directly

Calls 4

saveManyWithPure_Function · 0.85
saveManyWithPureBatched_Function · 0.85
saveWithPure_Function · 0.85
pipeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…