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

Function readExec

packages/infra/src/WorkflowEngineSqlite.ts:263–274  ·  view source on GitHub ↗
(executionId: string)

Source from the content-addressed store, hash-verified

261 // --- Core SQL operations ----------------------------------------------
262
263 const readExec = (executionId: string): Effect.Effect<Option.Option<ExecState>> =>
264 exec(
265 `SELECT * FROM "${execTable}" WHERE execution_id = ?`,
266 [executionId]
267 )
268 .pipe(
269 Effect.map((rows) => {
270 const r = (rows as ReadonlyArray<ExecRow>)[0]
271 return r ? Option.some(parseExec(r)) : Option.none<ExecState>()
272 }),
273 annotate("readExec", executionId)
274 )
275
276 /**
277 * OCC-guarded write. Generates a fresh etag on success; returns

Callers 4

heartbeatFunction · 0.70
driveFunction · 0.70
driveByIdFunction · 0.70

Calls 6

parseExecFunction · 0.85
someMethod · 0.80
execFunction · 0.70
annotateFunction · 0.70
pipeMethod · 0.65
mapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…