@uql/core 0.4.85 → 0.4.88

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.
Files changed (2) hide show
  1. package/README.md +12 -10
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -10,14 +10,14 @@ The `uql` queries can be safely written in the frontend (browser/mobile) and sen
10
10
 
11
11
  ## <a name="features"></a> Features
12
12
 
13
- - `JSON` (serializable) syntax for all the queries.
14
- - uses the power of `TypeScript` to get (smart) type-safety everywhere.
15
- - the generated queries are performant, safe, and human-readable.
16
- - `$project`, `$filter`, `$sort`, `$limit` works at multiple levels (including deep relations and their fields).
17
- - declarative and imperative `transactions`.
18
- - `soft-delete`, `virtual fields`, `repositories`, `connection pooling`.
19
- - transparent support for `inheritance` patterns between entities.
20
- - supports `Postgres`, `MySQL`, `MariaDB`, `SQLite`, `MongoDB` (beta).
13
+ - `JSON` (serializable) syntax for all the [queries](https://uql.io/docs/querying-logical-operators).
14
+ - uses the power of `TypeScript` to get smart type-safety [everywhere](https://uql.io/docs/api-repository).
15
+ - the generated queries are [performant](https://uql.io/docs/querying-retrieve-relations), safe, and human-readable.
16
+ - `$project`, `$filter`, `$sort`, `$limit` works at [multiple levels](https://uql.io/docs/querying-retrieve-relations) (including deep relations and their fields).
17
+ - [declarative](https://uql.io/docs/transactions-declarative) and [imperative](https://uql.io/docs/transactions-imperative) `transactions`.
18
+ - [soft-delete](https://uql.io/docs/entities-soft-delete), [virtual fields](https://uql.io/docs/entities-virtual-fields), [repositories](https://uql.io/docs/api-repository), `connection pooling`.
19
+ - transparent support for [inheritance](https://uql.io/docs/entities-advanced) between entities.
20
+ - supports `Postgres`, `MySQL`, `MariaDB`, `SQLite`, `MongoDB`.
21
21
 
22
22
  ## <a name="installation"></a> Installation
23
23
 
@@ -58,7 +58,7 @@ The `uql` queries can be safely written in the frontend (browser/mobile) and sen
58
58
  3. Additionally, your `tsconfig.json` may need the following flags:
59
59
 
60
60
  ```json
61
- "target": "es6", // or a more recent ecmascript version.
61
+ "target": "es2020",
62
62
  "experimentalDecorators": true,
63
63
  "emitDecoratorMetadata": true
64
64
  ```
@@ -96,7 +96,9 @@ import { Field, ManyToOne, Id, OneToMany, Entity, OneToOne, ManyToMany } from '@
96
96
  @Entity()
97
97
  export class Profile {
98
98
  /**
99
- * primary key
99
+ * primary-key.
100
+ * the `onInsert` callback can be used to specify a custom mechanism for auto-generating
101
+ * the default value of a field when inserting a new record.
100
102
  */
101
103
  @Id({ onInsert: uuidv4 })
102
104
  id?: string;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "homepage": "https://uql.io",
4
4
  "description": "flexible and efficient ORM, with declarative JSON syntax and smart type-safety",
5
5
  "license": "MIT",
6
- "version": "0.4.85",
6
+ "version": "0.4.88",
7
7
  "main": "index.js",
8
8
  "types": "index.d.ts",
9
9
  "scripts": {