@dbsp/adapter-pgsql 1.6.0 → 1.7.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/index.d.ts +8 -3
- package/dist/index.js +536 -167
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -147,7 +147,6 @@ interface PlanDecision {
|
|
|
147
147
|
readonly relationType?: 'belongsTo' | 'hasMany' | 'hasOne';
|
|
148
148
|
readonly foreignKey?: ColumnListInput;
|
|
149
149
|
readonly parentKey?: ColumnListInput;
|
|
150
|
-
readonly targetPrimaryKey?: readonly JsonAggOrderByEntry[];
|
|
151
150
|
readonly orderByFallback?: boolean;
|
|
152
151
|
readonly children?: readonly PlanDecision[];
|
|
153
152
|
readonly intentPath?: string;
|
|
@@ -353,7 +352,12 @@ declare class PlanCompiler {
|
|
|
353
352
|
private createHandlerState;
|
|
354
353
|
private schemaForRangeVar;
|
|
355
354
|
private isNqlBindingRoot;
|
|
355
|
+
private allocateBindingRelationAlias;
|
|
356
356
|
private buildCorrelatedRelationRefs;
|
|
357
|
+
private bindingRelationHasCompleteManyToManyProof;
|
|
358
|
+
private bindingRelationName;
|
|
359
|
+
private bindingRelationNameLooksRecursive;
|
|
360
|
+
private compileBindingRecursiveRelationColumnSubquery;
|
|
357
361
|
private compileBindingRelationColumnSubquery;
|
|
358
362
|
private compileExpressionSubquery;
|
|
359
363
|
private compileGenericNqlFunction;
|
|
@@ -629,6 +633,7 @@ declare function generateDownSQL(diff: SchemaDiff, options?: MigrationSQLOptions
|
|
|
629
633
|
* Migration File Format v2 — UP + DOWN sections.
|
|
630
634
|
*
|
|
631
635
|
* File format:
|
|
636
|
+
* -- dbsp:destructive: true|false
|
|
632
637
|
* <UP statements>;
|
|
633
638
|
* -- DOWN
|
|
634
639
|
* <DOWN statements>;
|
|
@@ -645,6 +650,7 @@ interface ParsedMigrationFile {
|
|
|
645
650
|
readonly upStatements: readonly string[];
|
|
646
651
|
readonly downStatements: readonly string[];
|
|
647
652
|
readonly hasDown: boolean;
|
|
653
|
+
readonly destructive?: boolean | undefined;
|
|
648
654
|
}
|
|
649
655
|
/**
|
|
650
656
|
* Generate a migration file content with UP and DOWN sections.
|
|
@@ -1182,14 +1188,13 @@ interface Decision {
|
|
|
1182
1188
|
readonly relationType?: 'belongsTo' | 'hasMany' | 'hasOne';
|
|
1183
1189
|
readonly foreignKey?: ColumnListInput;
|
|
1184
1190
|
readonly parentKey?: ColumnListInput;
|
|
1185
|
-
readonly targetPrimaryKey?: readonly JsonAggOrderByEntry[];
|
|
1186
1191
|
readonly orderByFallback?: boolean;
|
|
1187
1192
|
readonly children?: readonly Decision[];
|
|
1188
1193
|
readonly partition?: readonly string[];
|
|
1189
1194
|
readonly orderBy?: readonly {
|
|
1190
1195
|
column: string;
|
|
1191
1196
|
direction?: 'ASC' | 'DESC';
|
|
1192
|
-
}[];
|
|
1197
|
+
}[] | readonly JsonAggOrderByEntry[];
|
|
1193
1198
|
readonly frame?: string;
|
|
1194
1199
|
readonly maxDepth?: number;
|
|
1195
1200
|
readonly pathColumn?: string;
|