@palbase/backend 40.0.2 → 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
package/dist/engine/index.cjs
CHANGED
|
@@ -5251,7 +5251,7 @@ function diagnosingDriver(sql, surface = "service") {
|
|
|
5251
5251
|
const original = /* @__PURE__ */ __name((e) => String(e?.message ?? e), "original");
|
|
5252
5252
|
const explain = /* @__PURE__ */ __name((e) => {
|
|
5253
5253
|
if (isAbortedTransaction(e)) {
|
|
5254
|
-
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>.
|
|
5254
|
+
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)})`);
|
|
5255
5255
|
}
|
|
5256
5256
|
if (isUniqueViolation(e)) {
|
|
5257
5257
|
return markEngineRaised(new UniqueViolation(constraintOf(e)));
|