workers-qb
Advanced tools
Comparing version 1.6.4 to 1.6.5
@@ -136,4 +136,6 @@ declare enum OrderTypes { | ||
where: Where; | ||
returning?: string | Array<string>; | ||
orderBy?: string | Array<string> | Record<string, string | OrderTypes>; | ||
limit?: number; | ||
returning?: string | Array<string>; | ||
offset?: number; | ||
}; | ||
@@ -140,0 +142,0 @@ type DeleteReturning = Omit<Delete, 'returning'> & { |
@@ -509,3 +509,3 @@ "use strict"; | ||
return `DELETE | ||
FROM ${params.tableName}` + this._where(params.where) + this._limit(params.limit) + this._returning(params.returning); | ||
FROM ${params.tableName}` + this._where(params.where) + this._returning(params.returning) + this._orderBy(params.orderBy) + this._limit(params.limit) + this._offset(params.offset); | ||
} | ||
@@ -512,0 +512,0 @@ _select(params) { |
{ | ||
"name": "workers-qb", | ||
"version": "1.6.4", | ||
"version": "1.6.5", | ||
"description": "Zero dependencies Query Builder for Cloudflare Workers", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
74459
1725