Skip to content

Commit f7a0b71

Browse files
authored
improve sql errors (#1812)
1 parent f2479f9 commit f7a0b71

File tree

24 files changed

+1912
-96
lines changed

24 files changed

+1912
-96
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
"effect": patch
3+
"@effect/sql-clickhouse": patch
4+
"@effect/sql-d1": patch
5+
"@effect/sql-libsql": patch
6+
"@effect/sql-mssql": patch
7+
"@effect/sql-mysql2": patch
8+
"@effect/sql-pg": patch
9+
"@effect/sql-sqlite-bun": patch
10+
"@effect/sql-sqlite-do": patch
11+
"@effect/sql-sqlite-node": patch
12+
"@effect/sql-sqlite-react-native": patch
13+
"@effect/sql-sqlite-wasm": patch
14+
---
15+
16+
Consolidate the SqlError changes to the new reason-based shape across effect and the SQL drivers, classifying native failures into structured reasons with Unknown fallback where native codes are unavailable.

.specs/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ This directory contains specifications for all major features and enhancements i
2222
- [revert-option-unboxing.md](revert-option-unboxing.md) - Revert APIs from `A | undefined` back to `Option<A>` across effect, cluster, cli, and platform packages.
2323
- [response-id-tracking.md](response-id-tracking.md) - Add per-client response ID tracking with `prepareUnsafe` method for incremental input mode in OpenAI providers.
2424
- [ai-embedding-model.md](ai-embedding-model.md) - Add `EmbeddingModel` module to `effect/unstable/ai` with batching via `RequestResolver` and telemetry.
25+
- [sql-error-reason-pattern.md](sql-error-reason-pattern.md) - Refactor SqlError to use the reason pattern with per-reason classes and best-effort error classification across all SQL drivers.

0 commit comments

Comments
 (0)