@dbsp/nql 1.4.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 +11 -4
- package/dist/index.js +593 -63
- 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.
|