The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import * as Effect from "effect/Effect"; |
| 2 | import * as SqlClient from "effect/sql/SqlClient"; |
| 3 | |
| 4 | export default Effect.gen(function* () { |
| 5 | const sql = yield* SqlClient.SqlClient; |
| 6 | |
| 7 | yield* sql` |
| 8 | CREATE INDEX orchestration_v2_projection_turn_items_failed_error_idx |
| 9 | ON orchestration_v2_projection_turn_items( |
| 10 | thread_id, run_id, node_id, updated_at DESC, ordinal DESC, turn_item_id DESC |
| 11 | ) |
| 12 | WHERE type = 'error' AND status = 'failed' |
| 13 | `; |
| 14 | }); |