@dbsp/adapter-pgsql 1.10.2 → 1.11.2

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/index.d.ts CHANGED
@@ -218,6 +218,7 @@ interface JoinDecision extends PlanDecision {
218
218
  interface PrecompiledJoinDecision extends JoinDecision {
219
219
  readonly joinRarg: Node;
220
220
  readonly joinOnNode: Node;
221
+ readonly joinOnParams?: readonly unknown[];
221
222
  }
222
223
  /**
223
224
  * A pre-compiled 'join' decision backed by a BatchValues unnest() source.
@@ -456,6 +457,15 @@ declare class PlanCompiler {
456
457
  * Delegates to shared resolveCaseValue with nested CASE support.
457
458
  */
458
459
  private compileCaseValue;
460
+ /**
461
+ * Compile a custom ExpressionIntent (customFn, customOp, ref, cast, unary,
462
+ * array, function, subquery, …) to an AST node, applying the customFn FILTER
463
+ * clause. Shared by the `selectCustomExpression` target path and CASE
464
+ * THEN/ELSE values so both render the full expression surface identically
465
+ * (every expression kind + FILTER), rather than one path silently binding
466
+ * expressions as parameters or dropping FILTER.
467
+ */
468
+ private compileCustomExpressionNode;
459
469
  private compileInsert;
460
470
  private compileUpdate;
461
471
  private compileDelete;
@@ -520,7 +530,7 @@ declare function generateDDL(schema: ModelIR, options?: GenerateDDLOptions): str
520
530
  * @module schema-diff
521
531
  */
522
532
 
523
- type ChangeKind = 'create_table' | 'drop_table' | 'add_column' | 'drop_column' | 'alter_column_type' | 'alter_column_nullable' | 'alter_column_default' | 'add_primary_key' | 'drop_primary_key' | 'add_foreign_key' | 'drop_foreign_key' | 'alter_foreign_key' | 'validate_constraint' | 'create_index' | 'drop_index' | 'add_check_constraint' | 'drop_check_constraint' | 'create_enum' | 'alter_enum_add_value' | 'drop_enum' | 'alter_column_collation' | 'alter_column_identity' | 'add_comment' | 'drop_comment' | 'create_extension' | 'drop_extension' | 'create_sequence' | 'alter_sequence' | 'drop_sequence' | 'enable_rls' | 'disable_rls' | 'create_policy' | 'drop_policy';
533
+ type ChangeKind = 'create_table' | 'drop_table' | 'add_column' | 'drop_column' | 'alter_column_type' | 'alter_column_nullable' | 'alter_column_default' | 'alter_column_unique' | 'add_primary_key' | 'drop_primary_key' | 'add_foreign_key' | 'drop_foreign_key' | 'alter_foreign_key' | 'validate_constraint' | 'create_index' | 'drop_index' | 'add_check_constraint' | 'drop_check_constraint' | 'create_enum' | 'alter_enum_add_value' | 'drop_enum' | 'alter_column_collation' | 'alter_column_identity' | 'add_comment' | 'drop_comment' | 'create_extension' | 'drop_extension' | 'create_sequence' | 'alter_sequence' | 'drop_sequence' | 'enable_rls' | 'disable_rls' | 'create_policy' | 'drop_policy';
524
534
  interface SchemaChange {
525
535
  readonly kind: ChangeKind;
526
536
  readonly table: string;
@@ -618,7 +628,7 @@ interface MigrationSQLOptions {
618
628
  * 6. CREATE tables
619
629
  * 7. ADD columns
620
630
  * 8. ALTER columns (type, nullable, default)
621
- * 9. ADD primary keys
631
+ * 9. ADD primary keys / column UNIQUE constraints
622
632
  * 10. ADD FK constraints (must add after referenced tables exist)
623
633
  * 11. ALTER FK (drop + re-add)
624
634
  * 12. CREATE indexes