Comparing version 0.2.15 to 0.2.17
{ | ||
"name": "sqb", | ||
"description": "Plugin-driven, multi-dialect SQL query builder and Database connection framework for JavaScript", | ||
"version": "0.2.15", | ||
"version": "0.2.17", | ||
"author": "Panates Ltd.", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
@@ -695,2 +695,3 @@ /* SQB | ||
_serializeOrderBy(columns) { | ||
if (!(columns && columns.length)) return ''; | ||
const sb = new StringBuilder(this.prettyPrint ? undefined : 0); | ||
@@ -697,0 +698,0 @@ let o; |
@@ -30,7 +30,4 @@ /* SQB | ||
this.clearColumns(); | ||
this.clearFrom(); | ||
this.clearJoin(); | ||
this.clearOrderBy(); | ||
this.clearWhere(); | ||
this.clearGroupBy(); | ||
if (columns.length) | ||
@@ -128,2 +125,3 @@ this.columns(...columns); | ||
from(...table) { | ||
this.clearFrom(); | ||
for (const arg of table) { | ||
@@ -171,2 +169,3 @@ if (arg) | ||
groupBy(...field) { | ||
this.clearGroupBy(); | ||
for (const arg of field) { | ||
@@ -186,2 +185,3 @@ if (arg) | ||
orderBy(...field) { | ||
this.clearOrderBy(); | ||
for (const arg of field) { | ||
@@ -188,0 +188,0 @@ if (arg) |
67081
2254