bigal 14.0.45 → 14.0.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,5 @@
1
+ ## [14.0.46](https://github.com/bigalorm/bigal/compare/v14.0.45...v14.0.46) (2025-09-11)
2
+
1
3
  ## [14.0.45](https://github.com/bigalorm/bigal/compare/v14.0.44...v14.0.45) (2025-09-11)
2
4
 
3
5
  ## [14.0.44](https://github.com/bigalorm/bigal/compare/v14.0.43...v14.0.44) (2025-09-10)
package/README.md CHANGED
@@ -278,6 +278,23 @@ const items = await PersonRepository.find().where({
278
278
  });
279
279
  ```
280
280
 
281
+ #### Example of a date range (AND statement)
282
+
283
+ ```ts
284
+ const items = await PersonRepository.find().where({
285
+ createdAt: {
286
+ '>=': startDate,
287
+ '<': endDate,
288
+ },
289
+ });
290
+ ```
291
+
292
+ Equivalent to:
293
+
294
+ ```postgresql
295
+ select id,first_name as firstName,last_name as lastName,created_at as createdAt from person where created_at >= $1 AND created_at < $2
296
+ ```
297
+
281
298
  #### Fetch multiple objects and perform a db sort before returning result
282
299
 
283
300
  ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bigal",
3
- "version": "14.0.45",
3
+ "version": "14.0.46",
4
4
  "description": "A fast and lightweight orm for postgres and node.js, written in typescript.",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",