@balena/abstract-sql-compiler
Advanced tools
Comparing version 7.0.0-7-x-c8951190c532090757d0b99350529d7eaefb4a1f to 7.0.0-7-x-cf970a0cd028dd32efc1938ccbbb03f53faa72d9
@@ -7,4 +7,5 @@ # Change Log | ||
## 7.0.0 - 2020-05-19 | ||
## 7.0.0 - 2020-05-21 | ||
* Allow adding to the FromTypeNode set [Pagan Gazzard] | ||
* Rename to @balena/abstract-sql-compiler [Pagan Gazzard] | ||
@@ -11,0 +12,0 @@ * Improve typings [Pagan Gazzard] |
@@ -49,3 +49,8 @@ export declare const enum Engines { | ||
export declare type UnionQueryNode = ['UnionQuery', ...Array<UnionQueryNode | SelectQueryNode>]; | ||
declare type FromTypeNodes = SelectQueryNode | UnionQueryNode | TableNode | AliasNode<SelectQueryNode | UnionQueryNode | TableNode>; | ||
export interface FromTypeNode { | ||
SelectQueryNode: SelectQueryNode; | ||
UnionQueryNode: UnionQueryNode; | ||
TableNode: TableNode; | ||
} | ||
declare type FromTypeNodes = FromTypeNode[keyof FromTypeNode] | AliasNode<FromTypeNode[keyof FromTypeNode]>; | ||
export declare type SelectNode = ['Select', AbstractSqlType[]]; | ||
@@ -52,0 +57,0 @@ export declare type FromNode = ['From', FromTypeNodes]; |
{ | ||
"name": "@balena/abstract-sql-compiler", | ||
"version": "7.0.0-7-x-c8951190c532090757d0b99350529d7eaefb4a1f", | ||
"version": "7.0.0-7-x-cf970a0cd028dd32efc1938ccbbb03f53faa72d9", | ||
"description": "A translator for abstract sql into sql.", | ||
@@ -20,4 +20,4 @@ "main": "out/AbstractSQLCompiler.js", | ||
"@balena/sbvr-types": "^3.0.0", | ||
"@types/lodash": "^4.14.151", | ||
"@types/node": "^10.17.21", | ||
"@types/lodash": "^4.14.152", | ||
"@types/node": "^10.17.24", | ||
"lodash": "^4.17.15" | ||
@@ -42,3 +42,3 @@ }, | ||
"ts-node": "^7.0.1", | ||
"typescript": "^3.9.2" | ||
"typescript": "^3.9.3" | ||
}, | ||
@@ -45,0 +45,0 @@ "husky": { |
@@ -49,3 +49,3 @@ export const enum Engines { | ||
AbstractSqlType, | ||
...AbstractSqlType[], | ||
...AbstractSqlType[] | ||
]; | ||
@@ -90,3 +90,3 @@ export type ExistsNode = ['Exists', AbstractSqlType]; | ||
UnknownTypeNodes, | ||
...UnknownTypeNodes[], | ||
...UnknownTypeNodes[] | ||
]; | ||
@@ -135,10 +135,22 @@ export type UnknownTypeNodes = | ||
'UnionQuery', | ||
...Array<UnionQueryNode | SelectQueryNode>, | ||
...Array<UnionQueryNode | SelectQueryNode> | ||
]; | ||
/** | ||
* This interface allows adding to the valid set of FromTypeNodes using interface merging, eg | ||
* declare module '@balena/abstract-sql-compiler' { | ||
* interface FromTypeNode { | ||
* MyNode: MyNode; | ||
* } | ||
* } | ||
*/ | ||
export interface FromTypeNode { | ||
SelectQueryNode: SelectQueryNode; | ||
UnionQueryNode: UnionQueryNode; | ||
TableNode: TableNode; | ||
} | ||
type FromTypeNodes = | ||
| SelectQueryNode | ||
| UnionQueryNode | ||
| TableNode | ||
| AliasNode<SelectQueryNode | UnionQueryNode | TableNode>; | ||
| FromTypeNode[keyof FromTypeNode] | ||
| AliasNode<FromTypeNode[keyof FromTypeNode]>; | ||
@@ -145,0 +157,0 @@ export type SelectNode = ['Select', AbstractSqlType[]]; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
516685
7236
Updated@types/lodash@^4.14.152
Updated@types/node@^10.17.24