@iyio/common
Advanced tools
Comparing version 0.0.21 to 0.0.22
{ | ||
"name": "@iyio/common", | ||
"version": "0.0.21", | ||
"version": "0.0.22", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -16,3 +16,3 @@ export interface StaticQueryOperator<T = any> { | ||
*/ | ||
table: string | Query; | ||
table?: string | Query; | ||
/** | ||
@@ -19,0 +19,0 @@ * A name to define the table as in the query. If not defined a unique name will be generated. |
@@ -48,3 +48,3 @@ "use strict"; | ||
} | ||
else { | ||
else if (query.table) { | ||
ctx.sql.push('from'); | ||
@@ -51,0 +51,0 @@ ctx.sql.push('('); |
Sorry, the diff of this file is not supported yet
406346