@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/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 };