@palbase/backend 24.1.1 → 24.3.0
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 +3 -2
- package/dist/bin/palbase-backend.cjs.map +1 -1
- package/dist/bin/palbase-backend.js +1 -1
- package/dist/{chunk-LCL7TUAI.js → chunk-D5CQES25.js} +23 -1
- package/dist/chunk-D5CQES25.js.map +1 -0
- package/dist/{chunk-2A62DDVO.js → chunk-EIXCY4SS.js} +4 -3
- package/dist/{chunk-2A62DDVO.js.map → chunk-EIXCY4SS.js.map} +1 -1
- package/dist/db/index.cjs +22 -0
- package/dist/db/index.cjs.map +1 -1
- package/dist/db/index.d.cts +1 -1
- package/dist/db/index.d.ts +1 -1
- package/dist/db/index.js +1 -1
- package/dist/engine/index.cjs +3 -2
- package/dist/engine/index.cjs.map +1 -1
- package/dist/engine/index.d.cts +2 -2
- package/dist/engine/index.d.ts +2 -2
- package/dist/engine/index.js +1 -1
- package/dist/{index-D4rts8T7.d.cts → index-BLAbr9ZH.d.cts} +30 -0
- package/dist/{index-ByBMibIJ.d.ts → index-BTMYod_l.d.ts} +30 -0
- package/dist/{index-DAwHMppB.d.cts → index-C-ALG22n.d.cts} +1 -1
- package/dist/{index-C0PMn5jl.d.ts → index-DEneI8Mn.d.ts} +1 -1
- package/dist/index.cjs +23 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -4
- package/dist/index.d.ts +6 -4
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/docs/llms-full.txt +72 -1
- package/docs/schema.md +72 -1
- package/package.json +1 -1
- package/dist/chunk-LCL7TUAI.js.map +0 -1
package/dist/db/index.cjs
CHANGED
|
@@ -358,6 +358,28 @@ var ColumnBuilder = class _ColumnBuilder {
|
|
|
358
358
|
this._def.renamedFrom = previous;
|
|
359
359
|
return this;
|
|
360
360
|
}
|
|
361
|
+
/**
|
|
362
|
+
* See {@link ColumnDef.ignored}.
|
|
363
|
+
*
|
|
364
|
+
* COPIES the def rather than mutating it. The constructor takes an existing
|
|
365
|
+
* def BY REFERENCE, so every builder derived from another shares one object —
|
|
366
|
+
* `const a = slug.unique()` leaves `a._def === slug._def`. An in-place
|
|
367
|
+
* `ignored = true` therefore marks every column sharing that def, including
|
|
368
|
+
* one another table actively reads, and the gate would let THAT column be
|
|
369
|
+
* dropped. Measured before this copy existed.
|
|
370
|
+
*
|
|
371
|
+
* The aliasing is older than this method and other fields leak through it too.
|
|
372
|
+
* The reason this one cannot wait: every other leak produces a VISIBLE schema
|
|
373
|
+
* difference — the plan shows it, the DDL shows it. This one is invisible by
|
|
374
|
+
* design (no DDL, no diff, no plan line), so its only effect is to disarm a
|
|
375
|
+
* safety gate in silence.
|
|
376
|
+
*/
|
|
377
|
+
ignored() {
|
|
378
|
+
return new _ColumnBuilder(this._def.type, {
|
|
379
|
+
...this._def,
|
|
380
|
+
ignored: true
|
|
381
|
+
});
|
|
382
|
+
}
|
|
361
383
|
references(table, column) {
|
|
362
384
|
refuseOnVector(this._def, "references");
|
|
363
385
|
this._def.references = { table, column };
|