Merge commit '36c66dd290d3ce6eb1ccd310d0c658d4a32bb8eb' as 'repos/effect'
This commit is contained in:
17
repos/effect/.changeset/silver-snails-sqlite.md
Normal file
17
repos/effect/.changeset/silver-snails-sqlite.md
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
"effect": patch
|
||||
"@effect/sql-libsql": patch
|
||||
"@effect/sql-mssql": patch
|
||||
"@effect/sql-mysql2": patch
|
||||
"@effect/sql-pg": patch
|
||||
"@effect/sql-pglite": patch
|
||||
"@effect/sql-sqlite-bun": patch
|
||||
"@effect/sql-sqlite-do": patch
|
||||
"@effect/sql-sqlite-node": patch
|
||||
"@effect/sql-sqlite-react-native": patch
|
||||
"@effect/sql-sqlite-wasm": patch
|
||||
---
|
||||
|
||||
Add `UniqueViolation` as a new SQL error reason. Supported unique constraint violations now classify as `UniqueViolation` instead of the broader `ConstraintError` reason.
|
||||
|
||||
This covers PostgreSQL, PGlite, MySQL, MSSQL, and the shared SQLite classification used by the SQLite-family clients. `UniqueViolation.constraint` contains the best available constraint, index, or key identifier and falls back to exactly `"unknown"` when no reliable identifier is available.
|
||||
Reference in New Issue
Block a user