query design sql generator - new algorithm WIP

This commit is contained in:
Jan Prochazka
2020-12-29 10:31:46 +01:00
parent 60fd1c38ae
commit 5558869ff4
2 changed files with 296 additions and 87 deletions

View File

@@ -110,7 +110,7 @@ export interface Source {
export type JoinType = 'LEFT JOIN' | 'INNER JOIN' | 'RIGHT JOIN' | 'CROSS JOIN';
export type Relation = Source & {
conditions: Condition[];
conditions?: Condition[];
joinType: JoinType;
};
export type FromDefinition = Source & { relations?: Relation[] };