Comparing version 0.1.5 to 0.1.6
@@ -5,2 +5,9 @@ # Changelog | ||
## [0.1.6](https://gitlab.com/monstrous/monstrous/compare/v0.1.5...v0.1.6) (2023-07-14) | ||
### Bug Fixes | ||
* preserve fk relation name when aliasing ([f2bb3ac](https://gitlab.com/monstrous/monstrous/commit/f2bb3ac8cbf8aaa23ef0f4ff90d815cbdc7d8d34)) | ||
## [0.1.5](https://gitlab.com/monstrous/monstrous/compare/v0.1.4...v0.1.5) (2023-03-27) | ||
@@ -7,0 +14,0 @@ |
@@ -17,4 +17,4 @@ import Statement from '../statement/index.js'; | ||
...fk, | ||
reference_schema: null, | ||
reference: this.name | ||
reference_schema: spec.schema, | ||
reference: spec.name // keys are always de-aliased! | ||
})); | ||
@@ -21,0 +21,0 @@ |
@@ -152,3 +152,5 @@ import pgp from 'pg-promise'; | ||
window(partition_by, order_by) { | ||
window(expr) { | ||
const next = this.clone('#window'); | ||
return this; | ||
@@ -165,2 +167,8 @@ } | ||
having() { | ||
const next = this.clone('#having'); | ||
return next; | ||
} | ||
order(...fields) { | ||
@@ -167,0 +175,0 @@ const next = this.clone(); |
@@ -120,3 +120,3 @@ import pgp from 'pg-promise'; | ||
// existence | ||
// TODO implement; subqueries currently only support `in` | ||
// TODO implement as $exists key; subqueries currently only support `in` | ||
['exists', mutators.subquery], | ||
@@ -123,0 +123,0 @@ ['not', 'exists', mutators.subquery] |
{ | ||
"name": "monstrous", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "a lightweight SQL composer for Node.js and PostgreSQL", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
87204
1801