@dbsp/nql 1.3.0 → 1.5.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 +15 -4
- package/dist/index.js +1696 -47
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -418,10 +418,17 @@ interface ColumnValidatorSchema {
|
|
|
418
418
|
readonly childRole: string;
|
|
419
419
|
}[];
|
|
420
420
|
} | undefined;
|
|
421
|
-
getRelationsFrom(sourceTable: string): readonly
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
421
|
+
getRelationsFrom(sourceTable: string): readonly ColumnValidatorRelation[];
|
|
422
|
+
getRelation?(qualifiedName: string): ColumnValidatorRelation | undefined;
|
|
423
|
+
}
|
|
424
|
+
interface ColumnValidatorRelation {
|
|
425
|
+
readonly name: string;
|
|
426
|
+
readonly source?: string;
|
|
427
|
+
readonly target: string;
|
|
428
|
+
readonly type?: 'hasOne' | 'hasMany' | 'belongsTo' | 'belongsToMany';
|
|
429
|
+
readonly foreignKey?: string | readonly string[] | undefined;
|
|
430
|
+
readonly sourceKey?: string | undefined;
|
|
431
|
+
readonly targetKey?: string | undefined;
|
|
425
432
|
}
|
|
426
433
|
/**
|
|
427
434
|
* Options for the NQL compiler.
|
|
@@ -459,6 +466,10 @@ declare class NqlCompiler {
|
|
|
459
466
|
* Compile an NQL program to IntentAST.
|
|
460
467
|
*/
|
|
461
468
|
compile(program: NqlProgram): CompileResult;
|
|
469
|
+
private compileProgram;
|
|
470
|
+
private registerQueryBindingOutputSchema;
|
|
471
|
+
private canonicalizeMutationBinding;
|
|
472
|
+
private getMutationBindingOutputSchema;
|
|
462
473
|
private compileSingleStatement;
|
|
463
474
|
}
|
|
464
475
|
/**
|