(
executionId: string,
name: string,
encoded: string
)
| 392 | ) |
| 393 | |
| 394 | const createDeferred = ( |
| 395 | executionId: string, |
| 396 | name: string, |
| 397 | encoded: string |
| 398 | ): Effect.Effect<boolean> => |
| 399 | exec( |
| 400 | `INSERT INTO "${deferredTable}" (execution_id, name, exit) |
| 401 | VALUES (?, ?, ?) |
| 402 | ON CONFLICT DO NOTHING |
| 403 | RETURNING execution_id`, |
| 404 | [executionId, name, encoded] |
| 405 | ) |
| 406 | .pipe(Effect.map((rows) => (rows as ReadonlyArray<unknown>).length > 0)) |
| 407 | |
| 408 | const readDeferred = ( |
| 409 | executionId: string, |
no test coverage detected
searching dependent graphs…