@uql/core 3.4.3 → 3.4.4

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
@@ -3,7 +3,7 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [3.4.3](https://github.com/rogerpadilla/uql/compare/@uql/core@3.4.2...@uql/core@3.4.3) (2025-12-31)
6
+ ## [3.4.4](https://github.com/rogerpadilla/uql/compare/@uql/core@3.4.3...@uql/core@3.4.4) (2025-12-31)
7
7
 
8
8
  **Note:** Version bump only for package @uql/core
9
9
 
package/README.md CHANGED
@@ -65,7 +65,6 @@ See [this article](https://medium.com/@rogerpadillac/in-search-of-the-perfect-or
65
65
  | `LibSQL` (Turso) | `@libsql/client`
66
66
  | `Neon` (Serverless Postgres) | `@neondatabase/serverless`
67
67
 
68
-  
69
68
 
70
69
  For example, for `Postgres`, install the `pg` driver:
71
70
 
@@ -244,8 +243,9 @@ try {
244
243
  email: { $iincludes: '@example.com' }, // Case-insensitive search
245
244
  status: 'active'
246
245
  },
247
- $sort: { createdAt: -1 },
248
- $limit: 50
246
+ $sort: { createdAt: 'desc' },
247
+ $skip: 10
248
+ $limit: 10,
249
249
  });
250
250
  } finally {
251
251
  // Always release the querier to the pool
@@ -278,8 +278,7 @@ try {
278
278
  $select: ['title', 'createdAt'],
279
279
  // Filter the related collection directly
280
280
  $where: { title: { $iincludes: 'typescript' } },
281
- $sort: { createdAt: -1 },
282
- $limit: 5
281
+ $sort: { createdAt: 'desc' },
283
282
  }
284
283
  },
285
284
  $where: {
@@ -336,14 +335,14 @@ const result = await pool.transaction(async (querier) => {
336
335
  const profileId = await querier.insertOne(Profile, { userId: user.id, ... });
337
336
  return { userId: user.id, profileId };
338
337
  });
339
- // Connection is automatically released after the transaction.
338
+ // Connection is automatically released after a transaction.
340
339
  ```
341
340
 
342
341
   
343
342
 
344
343
  ## 5. Migrations & Synchronization
345
344
 
346
- UQL includes a robust migration system and an "Entity-First" synchronization engine built directly into the core.
345
+ UQL includes a robust *migration system* and an *Entity-First auto-synchronization* engine built directly into the core.
347
346
 
348
347
  ### 1. Create Configuration
349
348
 
@@ -386,9 +385,9 @@ npx uql-migrate status
386
385
  bunx uql-migrate status
387
386
  ```
388
387
 
389
- ### 3. Entity-First Synchronization (Development)
388
+ ### 3. Entity-First Synchronization (recommended for development)
390
389
 
391
- In development, you can use `autoSync` to automatically keep your database in sync with your entities, eliminating the need for manual migrations. It is **safe by default**, meaning it only adds missing tables and columns.
390
+ We recommend using `autoSync` (in development) to automatically keep your database in sync with your entities, eliminating the need for manual migrations. It is **safe by default**, meaning it only adds missing tables and columns.
392
391
 
393
392
  ```ts
394
393
  import { Migrator } from '@uql/core/migrate';
@@ -403,9 +402,9 @@ Check out the full [documentation](https://uql.app/migrations) for detailed CLI
403
402
   
404
403
 
405
404
  Learn more about UQL at [uql.app](https://uql.app) for details on:
406
- - [Complex Logical Operators](https://uql.app/querying-logical-operators)
407
- - [Relationship Mapping (1-1, 1-M, M-M)](https://uql.app/querying-relations)
408
- - [Soft Deletes & Auditing](https://uql.app/entities-soft-delete)
405
+ - [Complex Logical Operators](https://uql.app/querying/logical-operators)
406
+ - [Relationship Mapping (1-1, 1-M, M-M)](https://uql.app/querying/relations)
407
+ - [Soft Deletes & Auditing](https://uql.app/entities/soft-delete)
409
408
  - [Database Migration & Syncing](https://uql.app/migrations)
410
409
 
411
410
  ---
@@ -420,7 +419,6 @@ For those who want to see the "engine under the hood," check out these resources
420
419
  - [Abstract SQL Spec](https://github.com/rogerpadilla/uql/blob/main/packages/core/src/dialect/abstractSqlDialect-spec.ts): The base test suite shared by all dialects.
421
420
  - [PostgreSQL Spec](https://github.com/rogerpadilla/uql/blob/main/packages/core/src/postgres/postgresDialect.spec.ts) | [MySQL Spec](https://github.com/rogerpadilla/uql/blob/main/packages/core/src/mysql/mysqlDialect.spec.ts) | [SQLite Spec](https://github.com/rogerpadilla/uql/blob/main/packages/core/src/sqlite/sqliteDialect.spec.ts).
422
421
  - [Querier Integration Tests](https://github.com/rogerpadilla/uql/blob/main/packages/core/src/querier/abstractSqlQuerier-spec.ts): Testing the interaction between SQL generation and connection management.
423
- - [MongoDB Migration Tests](https://github.com/rogerpadilla/uql/blob/main/packages/core/src/migrate/migrator-mongo.it.ts): Integration tests ensuring correct collection and index synchronization for MongoDB.
424
422
 
425
423
  ---
426
424