@artenc/nest-orm 3.0.0 → 3.1.0
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/README.md +25 -2
- package/dist/entities/abstract-orm.entity.d.ts +12 -0
- package/dist/entities/abstract-orm.entity.js +20 -0
- package/dist/entities/abstract-orm.entity.js.map +1 -1
- package/dist/services/abstract-orm.service.d.ts +1 -0
- package/dist/services/abstract-orm.service.js +13 -0
- package/dist/services/abstract-orm.service.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Helper library to work with TypeORM in NestJS: a base entity with a transaction-
|
|
|
4
4
|
|
|
5
5
|
## Key features
|
|
6
6
|
|
|
7
|
-
- **Transaction-aware entities** — an entity's `save()` always
|
|
7
|
+
- **Transaction-aware entities** — an entity's `save()` and `remove()` always write through the right connection, whether that's its repository or an active transaction, with no manual bookkeeping.
|
|
8
8
|
- **Generic CRUD service** — get `create`/`find`/`findOne`/`update`/`remove`/... for an entity without hand-writing the same repository boilerplate every time.
|
|
9
9
|
- **Automatic transaction propagation** — wrap a block of work in a transaction and every entity/service call inside it joins that transaction automatically, including nested calls.
|
|
10
10
|
- **Compact UUID storage** — store UUIDs as 16-byte binary columns instead of 36-character strings, with optional auto-generation.
|
|
@@ -100,6 +100,13 @@ user.apply({ name: 'Ada Lovelace', role: 'admin' }) // 'role' is silently ignore
|
|
|
100
100
|
await user.save()
|
|
101
101
|
```
|
|
102
102
|
|
|
103
|
+
An entity removes itself through the same connection as `save()`, an active transaction's included, with `remove()`: softly for an entity with a `@DeleteDateColumn`, setting its delete date on the entity too, and for good otherwise. `hardRemove()` removes it for good either way. A removal for good leaves the entity without its primary key, as TypeORM's does.
|
|
104
|
+
|
|
105
|
+
```ts
|
|
106
|
+
await note.remove() // note.deletedAt is set, and reads leave it out
|
|
107
|
+
await note.hardRemove() // the row is gone
|
|
108
|
+
```
|
|
109
|
+
|
|
103
110
|
### `BinaryUuidColumn`
|
|
104
111
|
|
|
105
112
|
Stores a UUID as a 16-byte `binary` column instead of a 36-character string — smaller and faster to index — and can optionally generate the value for you on insert.
|
|
@@ -131,7 +138,7 @@ export class User extends AbstractOrmEntity {
|
|
|
131
138
|
|
|
132
139
|
### `AbstractOrmService`
|
|
133
140
|
|
|
134
|
-
`AbstractOrmService(Entity)` returns a class with `create`, `exists`, `find`, `findOne`, `count`, `update`, `remove`, and `createQueryBuilder` already implemented against `Entity`'s repository — extend it instead of hand-writing the same boilerplate for every entity:
|
|
141
|
+
`AbstractOrmService(Entity)` returns a class with `create`, `exists`, `find`, `findOne`, `count`, `update`, `remove`, `hardRemove`, and `createQueryBuilder` already implemented against `Entity`'s repository — extend it instead of hand-writing the same boilerplate for every entity:
|
|
135
142
|
|
|
136
143
|
```ts
|
|
137
144
|
import { Injectable } from '@nestjs/common'
|
|
@@ -151,6 +158,22 @@ await userOrmService.update({ id: user.id }, { name: 'Ada Lovelace' })
|
|
|
151
158
|
await userOrmService.remove({ id: user.id })
|
|
152
159
|
```
|
|
153
160
|
|
|
161
|
+
For an entity with a `@DeleteDateColumn`, `remove()` removes softly: it sets the rows' delete date, and TypeORM leaves them out of reads from then on, joined relations included, unless a read asks for them with `withDeleted: true`. `hardRemove()` removes rows for good either way. A soft removal doesn't run the database's `ON DELETE CASCADE`, as the row stays. An entity removes itself the same way, with its own [`remove()` and `hardRemove()`](#abstractormentity).
|
|
162
|
+
|
|
163
|
+
```ts
|
|
164
|
+
@Entity('notes')
|
|
165
|
+
export class Note extends AbstractOrmEntity {
|
|
166
|
+
// …
|
|
167
|
+
@DeleteDateColumn()
|
|
168
|
+
deletedAt!: Date | null
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
await noteOrmService.remove({ id }) // sets deletedAt
|
|
172
|
+
await noteOrmService.findOne({ where: { id } }) // null
|
|
173
|
+
await noteOrmService.findOne({ where: { id }, withDeleted: true }) // the note, with deletedAt
|
|
174
|
+
await noteOrmService.hardRemove({ id }) // the row is gone
|
|
175
|
+
```
|
|
176
|
+
|
|
154
177
|
Register the entity's repository the usual way and provide the service:
|
|
155
178
|
|
|
156
179
|
```ts
|
|
@@ -5,9 +5,21 @@ export declare abstract class AbstractOrmEntity {
|
|
|
5
5
|
setRepository(repository: Repository<this>): void;
|
|
6
6
|
setEntityManager(entityManager: EntityManager): void;
|
|
7
7
|
save(): Promise<this>;
|
|
8
|
+
/**
|
|
9
|
+
* Removes the entity: softly for an entity with a `@DeleteDateColumn`, and for good otherwise
|
|
10
|
+
*/
|
|
11
|
+
remove(): Promise<this>;
|
|
12
|
+
/**
|
|
13
|
+
* Removes the entity for good, also one with a `@DeleteDateColumn`
|
|
14
|
+
*/
|
|
15
|
+
hardRemove(): Promise<this>;
|
|
8
16
|
protected fillable(): (keyof this)[];
|
|
9
17
|
apply(fields: object): void;
|
|
10
18
|
private get repositoryOrEntityManager();
|
|
19
|
+
/**
|
|
20
|
+
* The repository of the entity's class: the one it holds, or the entity manager's
|
|
21
|
+
*/
|
|
22
|
+
private get entityRepository();
|
|
11
23
|
private get contextEntityManager();
|
|
12
24
|
protected generateBinaryUuidColumns(): void;
|
|
13
25
|
}
|
|
@@ -32,6 +32,19 @@ export class AbstractOrmEntity {
|
|
|
32
32
|
save() {
|
|
33
33
|
return this.repositoryOrEntityManager.save(this);
|
|
34
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Removes the entity: softly for an entity with a `@DeleteDateColumn`, and for good otherwise
|
|
37
|
+
*/
|
|
38
|
+
remove() {
|
|
39
|
+
const repository = this.entityRepository;
|
|
40
|
+
return repository.metadata.deleteDateColumn ? repository.softRemove(this) : repository.remove(this);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Removes the entity for good, also one with a `@DeleteDateColumn`
|
|
44
|
+
*/
|
|
45
|
+
hardRemove() {
|
|
46
|
+
return this.entityRepository.remove(this);
|
|
47
|
+
}
|
|
35
48
|
fillable() {
|
|
36
49
|
return [];
|
|
37
50
|
}
|
|
@@ -59,6 +72,13 @@ export class AbstractOrmEntity {
|
|
|
59
72
|
}
|
|
60
73
|
throw new Error('No repository or entity manager available');
|
|
61
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* The repository of the entity's class: the one it holds, or the entity manager's
|
|
77
|
+
*/
|
|
78
|
+
get entityRepository() {
|
|
79
|
+
const target = this.repositoryOrEntityManager;
|
|
80
|
+
return 'getRepository' in target ? target.getRepository(this.constructor) : target;
|
|
81
|
+
}
|
|
62
82
|
get contextEntityManager() {
|
|
63
83
|
const store = txStorage.getStore();
|
|
64
84
|
if (!store) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstract-orm.entity.js","sourceRoot":"","sources":["../../src/entities/abstract-orm.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAC3C,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEjE,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAA;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAA;AAEvE,+FAA+F;AAC/F,+DAA+D;AAC/D,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,aAAa,EAAE,WAAW,CAAC,CAAC,CAAA;AAE5E,MAAM,OAAgB,iBAAiB;IAE3B,UAAU,CAAmB;IAE7B,aAAa,CAAgB;IAE9B,aAAa,CAAC,UAA4B;QAC7C,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YAClB,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAA;QACjD,CAAC;QACD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;IAChC,CAAC;IAEM,gBAAgB,CAAC,aAA4B;QAChD,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;YACrB,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAA;QACpD,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D,CAAC;QACD,gFAAgF;QAChF,sFAAsF;QACtF,uFAAuF;QACvF,yFAAyF;QACzF,uFAAuF;QACvF,yFAAyF;QACzF,wFAAwF;QACxF,+EAA+E;QAC/E,IAAI,KAAK,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CACX,2HAA2H,CAC9H,CAAA;QACL,CAAC;QACD,OAAO,KAAK,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAA;IACtC,CAAC;IAGS,yBAAyB;QAC/B,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,IAAI,CAAC,WAA0B,CAAC,CAAA;QAE7E,KAAK,MAAM,MAAM,IAAI,gBAAgB,EAAE,CAAC;YACpC,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;gBACpB,SAAQ;YACZ,CAAC;YACD,MAAM,YAAY,GAAI,IAAgC,CAAC,MAAM,CAAC,WAAW,CAAC,CAAA;YAC1E,IAAI,YAAY,KAAK,IAAI,IAAI,YAAY,KAAK,SAAS,EAAE,CAAC;gBACtD,CAAC;gBAAC,IAAgC,CAAC,MAAM,CAAC,WAAW,CAAC,GAAG,MAAM,CAAC,SAAS,EAAE,CAAA;YAC/E,CAAC;QACL,CAAC;IACL,CAAC;CACJ;AAjHW;IADP,OAAO,EAAE;8BACW,UAAU;qDAAM;AAE7B;IADP,OAAO,EAAE;8BACc,aAAa;wDAAA;AAkG3B;IADT,YAAY,EAAE;;;;kEAad"}
|
|
@@ -11,6 +11,7 @@ export interface IOrmService<T extends AbstractOrmEntity> {
|
|
|
11
11
|
count(conditions: FindManyOptions<T>, enforceEntityManager?: EntityManager): Promise<number>;
|
|
12
12
|
update(criteria: FindOptionsWhere<T>, props: QueryDeepPartialEntity<T>, enforceEntityManager?: EntityManager): Promise<UpdateResult>;
|
|
13
13
|
remove(conditions: FindOptionsWhere<T>, enforceEntityManager?: EntityManager): Promise<DeleteResult>;
|
|
14
|
+
hardRemove(conditions: FindOptionsWhere<T>, enforceEntityManager?: EntityManager): Promise<DeleteResult>;
|
|
14
15
|
createQueryBuilder(alias: string, enforceEntityManager?: EntityManager): SelectQueryBuilder<T>;
|
|
15
16
|
}
|
|
16
17
|
export declare function AbstractOrmService<T extends AbstractOrmEntity>(entity: Constructor<T>): Type<IOrmService<T>>;
|
|
@@ -42,7 +42,20 @@ export function AbstractOrmService(entity) {
|
|
|
42
42
|
update(criteria, props, enforceEntityManager) {
|
|
43
43
|
return this.getRepository(enforceEntityManager).update(criteria, props);
|
|
44
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* Removes the matching rows: softly for an entity with a `@DeleteDateColumn`, setting their delete date, so reads
|
|
47
|
+
* leave them out from then on, and for good otherwise; `hardRemove()` removes them for good either way
|
|
48
|
+
*/
|
|
45
49
|
remove(conditions, enforceEntityManager) {
|
|
50
|
+
const repository = this.getRepository(enforceEntityManager);
|
|
51
|
+
return repository.metadata.deleteDateColumn
|
|
52
|
+
? repository.softDelete(conditions)
|
|
53
|
+
: repository.delete(conditions);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Removes the matching rows for good, also for an entity with a `@DeleteDateColumn`
|
|
57
|
+
*/
|
|
58
|
+
hardRemove(conditions, enforceEntityManager) {
|
|
46
59
|
return this.getRepository(enforceEntityManager).delete(conditions);
|
|
47
60
|
}
|
|
48
61
|
createQueryBuilder(alias, enforceEntityManager) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstract-orm.service.js","sourceRoot":"","sources":["../../src/services/abstract-orm.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAQH,UAAU,GAGb,MAAM,SAAS,CAAA;AAEhB,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAGlD,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAA;
|
|
1
|
+
{"version":3,"file":"abstract-orm.service.js","sourceRoot":"","sources":["../../src/services/abstract-orm.service.ts"],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