Skip to content

Commit

Permalink
Misc cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
grassick committed Jan 25, 2022
1 parent 822593e commit a5adbf8
Show file tree
Hide file tree
Showing 4 changed files with 987 additions and 903 deletions.
6 changes: 3 additions & 3 deletions lib/JsonqlCompiler.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import SchemaMap from "./SchemaMap";
/** Compiles jsonql to sql */
export default class JsonqlCompiler {
optimizeQueries: boolean;
schemaMap: any;
schemaMap: SchemaMap;
nextId: number;
constructor(schemaMap: SchemaMap, optimizeQueries?: boolean);
compileQuery(query: JsonQLQuery, aliases?: {
[alias: string]: string | boolean;
[alias: string]: string | true;
}, ctes?: {
[alias: string]: boolean;
}): SqlFragment;
Expand All @@ -19,7 +19,7 @@ export default class JsonqlCompiler {
aliases are dict of unmapped alias to table name, or true whitelisted tables (CTEs and subqueries and subexpressions)
*/
compileExpr(expr: JsonQLExpr, aliases: {
[alias: string]: string | boolean;
[alias: string]: string | true;
}, ctes?: {
[alias: string]: boolean;
}): SqlFragment;
Expand Down
Loading

0 comments on commit a5adbf8

Please sign in to comment.