@palbase/backend 40.0.3 → 40.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/palbase-backend.cjs +1 -1
- package/dist/bin/palbase-backend.cjs.map +1 -1
- package/dist/bin/palbase-backend.js +1 -1
- package/dist/{chunk-AS2HDWVQ.js → chunk-YORFZMAK.js} +2 -2
- package/dist/chunk-YORFZMAK.js.map +1 -0
- package/dist/engine/index.cjs +1 -1
- package/dist/engine/index.cjs.map +1 -1
- package/dist/engine/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-AS2HDWVQ.js.map +0 -1
|
@@ -5206,7 +5206,7 @@ function diagnosingDriver(sql, surface = "service") {
|
|
|
5206
5206
|
const original = /* @__PURE__ */ __name((e) => String(e?.message ?? e), "original");
|
|
5207
5207
|
const explain = /* @__PURE__ */ __name((e) => {
|
|
5208
5208
|
if (isAbortedTransaction(e)) {
|
|
5209
|
-
return new Error(`This request cannot write any more: an earlier write in it failed, and a request runs in ONE Postgres transaction, so every statement after the failure is refused. Nothing here is retryable in place. Wrap a write you expect to fail in \`Database.$attempt(async (tx) => \u2026)\` \u2014 it takes a SAVEPOINT, so only that write rolls back \u2014 or use \`Database.public.<t>.
|
|
5209
|
+
return new Error(`This request cannot write any more: an earlier write in it failed, and a request runs in ONE Postgres transaction, so every statement after the failure is refused. Nothing here is retryable in place. Wrap a write you expect to fail in \`Database.$attempt(async (tx) => \u2026)\` \u2014 it takes a SAVEPOINT, so only that write rolls back \u2014 or use \`Database.public.<t>.put({ data, onConflict: [...] })\` when the failure you were bracing for is a duplicate row. (${original(e)})`);
|
|
5210
5210
|
}
|
|
5211
5211
|
if (isUniqueViolation(e)) {
|
|
5212
5212
|
return markEngineRaised(new UniqueViolation(constraintOf(e)));
|