(row: unknown)
| 3684 | // on insert; a create result without it is a broken storage contract |
| 3685 | // and fails here, inside the transaction, before any provider write. |
| 3686 | const rowIdOf = (row: unknown): string | null => { |
| 3687 | const value = row == null ? null : (row as Record<string, unknown>)["row_id"]; |
| 3688 | return typeof value === "string" ? value : null; |
| 3689 | }; |
| 3690 | const insertedRowId = yield* transaction( |
| 3691 | Effect.gen(function* () { |
| 3692 | const existing = yield* findConnectionRow({ |