lakutata 2.0.57 → 2.0.59
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/com/database.cjs +2 -0
- package/com/database.d.ts +2 -2
- package/com/database.mjs +2 -0
- package/decorator/orm.cjs +88 -86
- package/decorator/orm.d.ts +74 -50
- package/decorator/orm.mjs +46 -44
- package/orm.cjs +112 -1075
- package/orm.d.ts +5 -5
- package/orm.mjs +17 -1015
- package/package.json +1 -1
- package/provider/database.cjs +2 -0
- package/provider/database.d.ts +2 -2
- package/provider/database.mjs +2 -0
- package/src/components/Database.cjs +2 -0
- package/src/components/Database.mjs +2 -0
- package/src/decorators/orm/AfterInsert.cjs +7 -27
- package/src/decorators/orm/AfterInsert.mjs +6 -28
- package/src/decorators/orm/AfterLoad.cjs +7 -27
- package/src/decorators/orm/AfterLoad.mjs +6 -28
- package/src/decorators/orm/AfterRecover.cjs +7 -27
- package/src/decorators/orm/AfterRecover.mjs +6 -28
- package/src/decorators/orm/AfterRemove.cjs +7 -27
- package/src/decorators/orm/AfterRemove.mjs +6 -28
- package/src/decorators/orm/AfterSoftRemove.cjs +7 -27
- package/src/decorators/orm/AfterSoftRemove.mjs +6 -28
- package/src/decorators/orm/AfterUpdate.cjs +7 -27
- package/src/decorators/orm/AfterUpdate.mjs +6 -28
- package/src/decorators/orm/BeforeInsert.cjs +7 -27
- package/src/decorators/orm/BeforeInsert.mjs +6 -28
- package/src/decorators/orm/BeforeRecover.cjs +7 -27
- package/src/decorators/orm/BeforeRecover.mjs +6 -28
- package/src/decorators/orm/BeforeRemove.cjs +7 -27
- package/src/decorators/orm/BeforeRemove.mjs +6 -28
- package/src/decorators/orm/BeforeSoftRemove.cjs +7 -27
- package/src/decorators/orm/BeforeSoftRemove.mjs +6 -28
- package/src/decorators/orm/BeforeUpdate.cjs +7 -27
- package/src/decorators/orm/BeforeUpdate.mjs +6 -28
- package/src/decorators/orm/Check.cjs +7 -30
- package/src/decorators/orm/Check.mjs +6 -31
- package/src/decorators/orm/ChildEntity.cjs +7 -30
- package/src/decorators/orm/ChildEntity.mjs +6 -31
- package/src/decorators/orm/Column.cjs +7 -62
- package/src/decorators/orm/Column.mjs +6 -63
- package/src/decorators/orm/CreateDateColumn.cjs +7 -26
- package/src/decorators/orm/CreateDateColumn.mjs +6 -27
- package/src/decorators/orm/DeleteDateColumn.cjs +7 -26
- package/src/decorators/orm/DeleteDateColumn.mjs +6 -27
- package/src/decorators/orm/Entity.cjs +7 -36
- package/src/decorators/orm/Entity.mjs +6 -37
- package/src/decorators/orm/EventSubscriber.cjs +7 -23
- package/src/decorators/orm/EventSubscriber.mjs +6 -24
- package/src/decorators/orm/Exclusion.cjs +7 -30
- package/src/decorators/orm/Exclusion.mjs +6 -31
- package/src/decorators/orm/Generated.cjs +7 -25
- package/src/decorators/orm/Generated.mjs +6 -26
- package/src/decorators/orm/Index.cjs +7 -42
- package/src/decorators/orm/Index.mjs +6 -43
- package/src/decorators/orm/JoinColumn.cjs +7 -30
- package/src/decorators/orm/JoinColumn.mjs +6 -31
- package/src/decorators/orm/JoinTable.cjs +7 -31
- package/src/decorators/orm/JoinTable.mjs +6 -32
- package/src/decorators/orm/ManyToMany.cjs +7 -43
- package/src/decorators/orm/ManyToMany.mjs +6 -44
- package/src/decorators/orm/ManyToOne.cjs +7 -43
- package/src/decorators/orm/ManyToOne.mjs +6 -44
- package/src/decorators/orm/ObjectIdColumn.cjs +7 -29
- package/src/decorators/orm/ObjectIdColumn.mjs +6 -30
- package/src/decorators/orm/OneToMany.cjs +7 -35
- package/src/decorators/orm/OneToMany.mjs +6 -36
- package/src/decorators/orm/OneToOne.cjs +7 -43
- package/src/decorators/orm/OneToOne.mjs +6 -44
- package/src/decorators/orm/PrimaryColumn.cjs +7 -50
- package/src/decorators/orm/PrimaryColumn.mjs +6 -51
- package/src/decorators/orm/PrimaryGeneratedColumn.cjs +7 -55
- package/src/decorators/orm/PrimaryGeneratedColumn.mjs +6 -56
- package/src/decorators/orm/RelationId.cjs +7 -27
- package/src/decorators/orm/RelationId.mjs +6 -28
- package/src/decorators/orm/TableInheritance.cjs +7 -27
- package/src/decorators/orm/TableInheritance.mjs +6 -28
- package/src/decorators/orm/Tree.cjs +7 -25
- package/src/decorators/orm/Tree.mjs +6 -26
- package/src/decorators/orm/TreeChildren.cjs +7 -32
- package/src/decorators/orm/TreeChildren.mjs +6 -33
- package/src/decorators/orm/TreeLevelColumn.cjs +7 -26
- package/src/decorators/orm/TreeLevelColumn.mjs +6 -27
- package/src/decorators/orm/TreeParent.cjs +7 -32
- package/src/decorators/orm/TreeParent.mjs +6 -33
- package/src/decorators/orm/Unique.cjs +7 -45
- package/src/decorators/orm/Unique.mjs +6 -46
- package/src/decorators/orm/UpdateDateColumn.cjs +7 -26
- package/src/decorators/orm/UpdateDateColumn.mjs +6 -27
- package/src/decorators/orm/VersionColumn.cjs +7 -26
- package/src/decorators/orm/VersionColumn.mjs +6 -27
- package/src/decorators/orm/ViewColumn.cjs +7 -26
- package/src/decorators/orm/ViewColumn.mjs +6 -27
- package/src/decorators/orm/ViewEntity.cjs +7 -35
- package/src/decorators/orm/ViewEntity.mjs +6 -36
- package/src/decorators/orm/VirtualColumn.cjs +7 -43
- package/src/decorators/orm/VirtualColumn.mjs +6 -44
- package/src/lib/base/abstracts/Exception.cjs +7 -6
- package/src/lib/base/abstracts/Exception.mjs +1 -0
- package/src/providers/Database.cjs +2 -0
- package/src/providers/Database.mjs +2 -0
- package/vendor/Package.122.cjs +19932 -14856
- package/vendor/Package.122.mjs +32675 -27699
- package/vendor/Package.19.cjs +184 -195
- package/vendor/Package.19.mjs +176 -187
- package/vendor/Package.6.cjs +1 -1
- package/vendor/Package.6.mjs +1 -1
- package/vendor/TypeDef.4.d.ts +347 -181
- package/vendor/TypeDef.7.d.ts +1 -0
package/com/database.cjs
CHANGED
package/com/database.d.ts
CHANGED
|
@@ -3,9 +3,9 @@ import { C as Component } from '../vendor/TypeDef.3.js';
|
|
|
3
3
|
import { D as DataSourceOptions, a as DataSource, b as Driver, E as EntityManager, N as NamingStrategyInterface, c as EntitySubscriberInterface, d as EntityMetadata, e as EntityTarget, Q as QueryResultCache, M as Migration, O as ObjectLiteral, R as Repository, T as TreeRepository, f as MongoRepository, I as IsolationLevel, g as QueryRunner, S as SelectQueryBuilder, h as ReplicationMode } from '../vendor/TypeDef.4.js';
|
|
4
4
|
import '../vendor/TypeDef.5.js';
|
|
5
5
|
import 'fs';
|
|
6
|
-
import 'tls';
|
|
7
|
-
import 'net';
|
|
8
6
|
import 'dns';
|
|
7
|
+
import 'net';
|
|
8
|
+
import 'tls';
|
|
9
9
|
import 'events';
|
|
10
10
|
import 'stream';
|
|
11
11
|
|
package/com/database.mjs
CHANGED
package/decorator/orm.cjs
CHANGED
|
@@ -6,93 +6,93 @@ Object.defineProperty(exports, Symbol.toStringTag, {
|
|
|
6
6
|
|
|
7
7
|
require("../vendor/Package.4.cjs");
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
require("../src/decorators/orm/AfterRecover.cjs");
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
require("../src/decorators/orm/AfterRemove.cjs");
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
require("../src/decorators/orm/AfterInsert.cjs");
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
require("../src/decorators/orm/AfterLoad.cjs");
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
require("../src/decorators/orm/AfterSoftRemove.cjs");
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
require("../src/decorators/orm/AfterUpdate.cjs");
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
require("../src/decorators/orm/BeforeInsert.cjs");
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
require("../src/decorators/orm/BeforeRecover.cjs");
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
require("../src/decorators/orm/BeforeRemove.cjs");
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
require("../src/decorators/orm/BeforeSoftRemove.cjs");
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
require("../src/decorators/orm/BeforeUpdate.cjs");
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
require("../src/decorators/orm/Check.cjs");
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
require("../src/decorators/orm/ChildEntity.cjs");
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
require("../src/decorators/orm/Column.cjs");
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
require("../src/decorators/orm/CreateDateColumn.cjs");
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
require("../src/decorators/orm/DeleteDateColumn.cjs");
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
require("../src/decorators/orm/Entity.cjs");
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
require("../src/decorators/orm/EventSubscriber.cjs");
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
require("../src/decorators/orm/Exclusion.cjs");
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
require("../src/decorators/orm/Generated.cjs");
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
require("../src/decorators/orm/Index.cjs");
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
require("../src/decorators/orm/JoinColumn.cjs");
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
require("../src/decorators/orm/JoinTable.cjs");
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
require("../src/decorators/orm/ManyToMany.cjs");
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
require("../src/decorators/orm/ManyToOne.cjs");
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
require("../src/decorators/orm/ObjectIdColumn.cjs");
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
require("../src/decorators/orm/OneToMany.cjs");
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
require("../src/decorators/orm/OneToOne.cjs");
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
require("../src/decorators/orm/PrimaryColumn.cjs");
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
require("../src/decorators/orm/PrimaryGeneratedColumn.cjs");
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
require("../src/decorators/orm/RelationId.cjs");
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
require("../src/decorators/orm/TableInheritance.cjs");
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
require("../src/decorators/orm/Tree.cjs");
|
|
74
74
|
|
|
75
|
-
|
|
75
|
+
require("../src/decorators/orm/TreeChildren.cjs");
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
require("../src/decorators/orm/TreeLevelColumn.cjs");
|
|
78
78
|
|
|
79
|
-
|
|
79
|
+
require("../src/decorators/orm/TreeParent.cjs");
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
require("../src/decorators/orm/Unique.cjs");
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
require("../src/decorators/orm/UpdateDateColumn.cjs");
|
|
84
84
|
|
|
85
|
-
|
|
85
|
+
require("../src/decorators/orm/VersionColumn.cjs");
|
|
86
86
|
|
|
87
|
-
|
|
87
|
+
require("../src/decorators/orm/ViewColumn.cjs");
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
require("../src/decorators/orm/ViewEntity.cjs");
|
|
90
90
|
|
|
91
|
-
|
|
91
|
+
require("../src/decorators/orm/VirtualColumn.cjs");
|
|
92
92
|
|
|
93
|
-
require("../vendor/Package.
|
|
93
|
+
const e = require("../vendor/Package.122.cjs");
|
|
94
94
|
|
|
95
|
-
require("../vendor/Package.
|
|
95
|
+
require("../vendor/Package.5.cjs");
|
|
96
96
|
|
|
97
97
|
require("../vendor/Package.13.cjs");
|
|
98
98
|
|
|
@@ -138,6 +138,8 @@ require("../vendor/Package.11.cjs");
|
|
|
138
138
|
|
|
139
139
|
require("url");
|
|
140
140
|
|
|
141
|
+
require("node:util");
|
|
142
|
+
|
|
141
143
|
require("../vendor/Package.63.cjs");
|
|
142
144
|
|
|
143
145
|
require("node:url");
|
|
@@ -154,86 +156,86 @@ require("node:stream");
|
|
|
154
156
|
|
|
155
157
|
require("node:string_decoder");
|
|
156
158
|
|
|
157
|
-
exports.
|
|
159
|
+
exports.AfterInsert = e.AfterInsert_2;
|
|
158
160
|
|
|
159
|
-
exports.
|
|
161
|
+
exports.AfterLoad = e.AfterLoad_2;
|
|
160
162
|
|
|
161
|
-
exports.
|
|
163
|
+
exports.AfterRecover = e.AfterRecover_2;
|
|
162
164
|
|
|
163
|
-
exports.
|
|
165
|
+
exports.AfterRemove = e.AfterRemove_2;
|
|
164
166
|
|
|
165
|
-
exports.AfterSoftRemove =
|
|
167
|
+
exports.AfterSoftRemove = e.AfterSoftRemove_2;
|
|
166
168
|
|
|
167
|
-
exports.AfterUpdate =
|
|
169
|
+
exports.AfterUpdate = e.AfterUpdate_2;
|
|
168
170
|
|
|
169
|
-
exports.BeforeInsert =
|
|
171
|
+
exports.BeforeInsert = e.BeforeInsert_2;
|
|
170
172
|
|
|
171
|
-
exports.BeforeRecover =
|
|
173
|
+
exports.BeforeRecover = e.BeforeRecover_2;
|
|
172
174
|
|
|
173
|
-
exports.BeforeRemove =
|
|
175
|
+
exports.BeforeRemove = e.BeforeRemove_2;
|
|
174
176
|
|
|
175
|
-
exports.BeforeSoftRemove =
|
|
177
|
+
exports.BeforeSoftRemove = e.BeforeSoftRemove_2;
|
|
176
178
|
|
|
177
|
-
exports.BeforeUpdate =
|
|
179
|
+
exports.BeforeUpdate = e.BeforeUpdate_2;
|
|
178
180
|
|
|
179
|
-
exports.Check =
|
|
181
|
+
exports.Check = e.Check_2;
|
|
180
182
|
|
|
181
|
-
exports.ChildEntity =
|
|
183
|
+
exports.ChildEntity = e.ChildEntity_2;
|
|
182
184
|
|
|
183
|
-
exports.Column =
|
|
185
|
+
exports.Column = e.Column_2;
|
|
184
186
|
|
|
185
|
-
exports.CreateDateColumn =
|
|
187
|
+
exports.CreateDateColumn = e.CreateDateColumn_2;
|
|
186
188
|
|
|
187
|
-
exports.DeleteDateColumn =
|
|
189
|
+
exports.DeleteDateColumn = e.DeleteDateColumn_2;
|
|
188
190
|
|
|
189
|
-
exports.Entity =
|
|
191
|
+
exports.Entity = e.Entity_2;
|
|
190
192
|
|
|
191
|
-
exports.EventSubscriber =
|
|
193
|
+
exports.EventSubscriber = e.EventSubscriber_2;
|
|
192
194
|
|
|
193
|
-
exports.Exclusion =
|
|
195
|
+
exports.Exclusion = e.Exclusion_2;
|
|
194
196
|
|
|
195
|
-
exports.Generated =
|
|
197
|
+
exports.Generated = e.Generated_2;
|
|
196
198
|
|
|
197
|
-
exports.Index =
|
|
199
|
+
exports.Index = e.Index_2;
|
|
198
200
|
|
|
199
|
-
exports.JoinColumn =
|
|
201
|
+
exports.JoinColumn = e.JoinColumn_2;
|
|
200
202
|
|
|
201
|
-
exports.JoinTable =
|
|
203
|
+
exports.JoinTable = e.JoinTable_2;
|
|
202
204
|
|
|
203
|
-
exports.ManyToMany =
|
|
205
|
+
exports.ManyToMany = e.ManyToMany_2;
|
|
204
206
|
|
|
205
|
-
exports.ManyToOne =
|
|
207
|
+
exports.ManyToOne = e.ManyToOne_2;
|
|
206
208
|
|
|
207
|
-
exports.ObjectIdColumn =
|
|
209
|
+
exports.ObjectIdColumn = e.ObjectIdColumn_2;
|
|
208
210
|
|
|
209
|
-
exports.OneToMany =
|
|
211
|
+
exports.OneToMany = e.OneToMany_2;
|
|
210
212
|
|
|
211
|
-
exports.OneToOne =
|
|
213
|
+
exports.OneToOne = e.OneToOne_2;
|
|
212
214
|
|
|
213
|
-
exports.PrimaryColumn =
|
|
215
|
+
exports.PrimaryColumn = e.PrimaryColumn_2;
|
|
214
216
|
|
|
215
|
-
exports.PrimaryGeneratedColumn =
|
|
217
|
+
exports.PrimaryGeneratedColumn = e.PrimaryGeneratedColumn_2;
|
|
216
218
|
|
|
217
|
-
exports.RelationId =
|
|
219
|
+
exports.RelationId = e.RelationId_2;
|
|
218
220
|
|
|
219
|
-
exports.TableInheritance =
|
|
221
|
+
exports.TableInheritance = e.TableInheritance_2;
|
|
220
222
|
|
|
221
|
-
exports.Tree =
|
|
223
|
+
exports.Tree = e.Tree_2;
|
|
222
224
|
|
|
223
|
-
exports.TreeChildren =
|
|
225
|
+
exports.TreeChildren = e.TreeChildren_2;
|
|
224
226
|
|
|
225
|
-
exports.TreeLevelColumn =
|
|
227
|
+
exports.TreeLevelColumn = e.TreeLevelColumn_2;
|
|
226
228
|
|
|
227
|
-
exports.TreeParent =
|
|
229
|
+
exports.TreeParent = e.TreeParent_2;
|
|
228
230
|
|
|
229
|
-
exports.Unique =
|
|
231
|
+
exports.Unique = e.Unique_2;
|
|
230
232
|
|
|
231
|
-
exports.UpdateDateColumn =
|
|
233
|
+
exports.UpdateDateColumn = e.UpdateDateColumn_2;
|
|
232
234
|
|
|
233
|
-
exports.VersionColumn =
|
|
235
|
+
exports.VersionColumn = e.VersionColumn_2;
|
|
234
236
|
|
|
235
|
-
exports.ViewColumn =
|
|
237
|
+
exports.ViewColumn = e.ViewColumn_2;
|
|
236
238
|
|
|
237
|
-
exports.ViewEntity =
|
|
239
|
+
exports.ViewEntity = e.ViewEntity_2;
|
|
238
240
|
|
|
239
|
-
exports.VirtualColumn =
|
|
241
|
+
exports.VirtualColumn = e.VirtualColumn_2;
|
package/decorator/orm.d.ts
CHANGED
|
@@ -1,47 +1,28 @@
|
|
|
1
1
|
import '../vendor/TypeDef.2.js';
|
|
2
|
-
import { C as ColumnOptions, l as SimpleColumnType, m as ColumnCommonOptions, n as SpatialColumnType, o as SpatialColumnOptions, W as WithLengthColumnType,
|
|
2
|
+
import { C as ColumnOptions, l as SimpleColumnType, m as ColumnCommonOptions, n as SpatialColumnType, o as SpatialColumnOptions, W as WithLengthColumnType, U as UnsignedColumnType, p as WithPrecisionColumnType, P as PrimaryGeneratedColumnType, q as ColumnType, V as ValueTransformer, J as JoinColumnOptions, r as JoinTableOptions, s as JoinTableMultipleColumnsOptions, t as ObjectType, u as RelationOptions, S as SelectQueryBuilder, a as DataSource, v as OnDeleteType, w as TreeType, x as ClosureTreeOptions, y as DeferrableType } from '../vendor/TypeDef.4.js';
|
|
3
3
|
import { E as EntityOptions, I as IndexOptions } from '../vendor/TypeDef.12.js';
|
|
4
4
|
import 'fs';
|
|
5
|
-
import 'tls';
|
|
6
|
-
import 'net';
|
|
7
5
|
import 'dns';
|
|
6
|
+
import 'net';
|
|
7
|
+
import 'tls';
|
|
8
8
|
import 'events';
|
|
9
9
|
import 'stream';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
*/
|
|
14
|
-
interface ColumnWithLengthOptions {
|
|
15
|
-
/**
|
|
16
|
-
* Column type's length.
|
|
17
|
-
* For example type = "varchar" and length = "100" means ORM will create a column with type varchar(100).
|
|
18
|
-
*/
|
|
19
|
-
length?: string | number;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Options for numeric column types where user can specify scale and precision.
|
|
12
|
+
* Column options specific to embedded column.
|
|
24
13
|
*/
|
|
25
|
-
interface
|
|
26
|
-
/**
|
|
27
|
-
* The precision for a decimal (exact numeric) column (applies only for decimal column), which is the maximum
|
|
28
|
-
* number of digits that are stored for the values.
|
|
29
|
-
*/
|
|
30
|
-
precision?: number;
|
|
31
|
-
/**
|
|
32
|
-
* The scale for a decimal (exact numeric) column (applies only for decimal column), which represents the number
|
|
33
|
-
* of digits to the right of the decimal point and must not be greater than precision.
|
|
34
|
-
*/
|
|
35
|
-
scale?: number;
|
|
14
|
+
interface ColumnEmbeddedOptions {
|
|
36
15
|
/**
|
|
37
|
-
*
|
|
38
|
-
* If
|
|
16
|
+
* Embedded column prefix.
|
|
17
|
+
* If set to empty string or false, then prefix is not set at all.
|
|
39
18
|
*/
|
|
40
|
-
|
|
19
|
+
prefix?: string | boolean;
|
|
41
20
|
/**
|
|
42
|
-
*
|
|
21
|
+
* Indicates if this embedded is in array mode.
|
|
22
|
+
*
|
|
23
|
+
* This option works only in mongodb.
|
|
43
24
|
*/
|
|
44
|
-
|
|
25
|
+
array?: boolean;
|
|
45
26
|
}
|
|
46
27
|
|
|
47
28
|
/**
|
|
@@ -59,45 +40,69 @@ interface ColumnEnumOptions {
|
|
|
59
40
|
}
|
|
60
41
|
|
|
61
42
|
/**
|
|
62
|
-
* Column options
|
|
43
|
+
* Column options for enum-typed columns.
|
|
63
44
|
*/
|
|
64
|
-
interface
|
|
65
|
-
/**
|
|
66
|
-
* Embedded column prefix.
|
|
67
|
-
* If set to empty string or false, then prefix is not set at all.
|
|
68
|
-
*/
|
|
69
|
-
prefix?: string | boolean;
|
|
45
|
+
interface ColumnHstoreOptions {
|
|
70
46
|
/**
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
* This option works only in mongodb.
|
|
47
|
+
* Return type of HSTORE column.
|
|
48
|
+
* Returns value as string or as object.
|
|
74
49
|
*/
|
|
75
|
-
|
|
50
|
+
hstoreType?: string;
|
|
76
51
|
}
|
|
77
52
|
|
|
78
53
|
/**
|
|
79
|
-
*
|
|
54
|
+
* Options for numeric column types where user can specify scale and precision.
|
|
80
55
|
*/
|
|
81
|
-
interface
|
|
56
|
+
interface ColumnNumericOptions {
|
|
82
57
|
/**
|
|
83
|
-
*
|
|
84
|
-
*
|
|
58
|
+
* The precision for a decimal (exact numeric) column (applies only for decimal column), which is the maximum
|
|
59
|
+
* number of digits that are stored for the values.
|
|
85
60
|
*/
|
|
86
|
-
|
|
61
|
+
precision?: number;
|
|
62
|
+
/**
|
|
63
|
+
* The scale for a decimal (exact numeric) column (applies only for decimal column), which represents the number
|
|
64
|
+
* of digits to the right of the decimal point and must not be greater than precision.
|
|
65
|
+
*/
|
|
66
|
+
scale?: number;
|
|
67
|
+
/**
|
|
68
|
+
* Puts ZEROFILL attribute on to numeric column. Works only for MySQL.
|
|
69
|
+
* If you specify ZEROFILL for a numeric column, MySQL automatically adds
|
|
70
|
+
* the UNSIGNED attribute to the column
|
|
71
|
+
* @deprecated MySQL deprecated and removed the ZEROFILL attribute. This
|
|
72
|
+
* will also be removed from TypeORM in an upcoming version. Use a character
|
|
73
|
+
* column and the `LPAD` function as suggested by MySQL or handle the
|
|
74
|
+
* formatting in the application layer.
|
|
75
|
+
*/
|
|
76
|
+
zerofill?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Puts UNSIGNED attribute on to numeric column. Works only for MySQL.
|
|
79
|
+
* @deprecated MySQL deprecated the UNSIGNED attribute for non-integer
|
|
80
|
+
* numeric types. This will also be removed from TypeORM in an upcoming version.
|
|
81
|
+
*/
|
|
82
|
+
unsigned?: boolean;
|
|
87
83
|
}
|
|
88
84
|
|
|
89
85
|
/**
|
|
90
86
|
* Options for columns that can define a length of the column type.
|
|
91
87
|
*/
|
|
92
|
-
interface
|
|
88
|
+
interface ColumnUnsignedOptions {
|
|
93
89
|
/**
|
|
94
90
|
* Column type's display width. Used only on some column types in MySQL.
|
|
95
91
|
* For example, INT(4) specifies an INT with a display width of four digits.
|
|
92
|
+
* @deprecated MySQL deprecated and removed display width for integer types,
|
|
93
|
+
* TypeORM will also remove it in an upcoming version. Use a character
|
|
94
|
+
* column and the `LPAD` function as suggested by MySQL or handle the
|
|
95
|
+
* formatting in the application layer.
|
|
96
96
|
*/
|
|
97
97
|
width?: number;
|
|
98
98
|
/**
|
|
99
99
|
* Puts ZEROFILL attribute on to numeric column. Works only for MySQL.
|
|
100
|
-
* If you specify ZEROFILL for a numeric column, MySQL automatically adds
|
|
100
|
+
* If you specify ZEROFILL for a numeric column, MySQL automatically adds
|
|
101
|
+
* the UNSIGNED attribute to this column
|
|
102
|
+
* @deprecated MySQL deprecated and removed the zerofill attribute. This
|
|
103
|
+
* will also be removed from TypeORM in an upcoming version. Use a character
|
|
104
|
+
* column and the `LPAD` function as suggested by MySQL or handle the
|
|
105
|
+
* formatting in the application layer.
|
|
101
106
|
*/
|
|
102
107
|
zerofill?: boolean;
|
|
103
108
|
/**
|
|
@@ -106,6 +111,17 @@ interface ColumnWithWidthOptions {
|
|
|
106
111
|
unsigned?: boolean;
|
|
107
112
|
}
|
|
108
113
|
|
|
114
|
+
/**
|
|
115
|
+
* Options for columns that can define a length of the column type.
|
|
116
|
+
*/
|
|
117
|
+
interface ColumnWithLengthOptions {
|
|
118
|
+
/**
|
|
119
|
+
* Column type's length.
|
|
120
|
+
* For example type = "varchar" and length = "100" means ORM will create a column with type varchar(100).
|
|
121
|
+
*/
|
|
122
|
+
length?: string | number;
|
|
123
|
+
}
|
|
124
|
+
|
|
109
125
|
/**
|
|
110
126
|
* Column decorator is used to mark a specific class property as a table column. Only properties decorated with this
|
|
111
127
|
* decorator will be persisted to the database when entity be saved.
|
|
@@ -135,7 +151,7 @@ declare function Column(type: WithLengthColumnType, options?: ColumnCommonOption
|
|
|
135
151
|
* Column decorator is used to mark a specific class property as a table column.
|
|
136
152
|
* Only properties decorated with this decorator will be persisted to the database when entity be saved.
|
|
137
153
|
*/
|
|
138
|
-
declare function Column(type:
|
|
154
|
+
declare function Column(type: UnsignedColumnType, options?: ColumnCommonOptions & ColumnUnsignedOptions): PropertyDecorator;
|
|
139
155
|
/**
|
|
140
156
|
* Column decorator is used to mark a specific class property as a table column.
|
|
141
157
|
* Only properties decorated with this decorator will be persisted to the database when entity be saved.
|
|
@@ -203,6 +219,9 @@ interface PrimaryGeneratedColumnNumericOptions {
|
|
|
203
219
|
/**
|
|
204
220
|
* Puts ZEROFILL attribute on to numeric column. Works only for MySQL.
|
|
205
221
|
* If you specify ZEROFILL for a numeric column, MySQL automatically adds the UNSIGNED attribute to the column
|
|
222
|
+
* @deprecated No longer supported in newer MySQL versions, will be removed
|
|
223
|
+
* from TypeORM in an upcoming version. Use a character column and the
|
|
224
|
+
* `LPAD` function as suggested by MySQL
|
|
206
225
|
*/
|
|
207
226
|
zerofill?: boolean;
|
|
208
227
|
/**
|
|
@@ -322,6 +341,11 @@ interface VirtualColumnOptions {
|
|
|
322
341
|
* Column type. Must be one of the value from the ColumnTypes class.
|
|
323
342
|
*/
|
|
324
343
|
type?: ColumnType;
|
|
344
|
+
/**
|
|
345
|
+
* Indicates if column is always selected by QueryBuilder and find operations.
|
|
346
|
+
* Default value is "true".
|
|
347
|
+
*/
|
|
348
|
+
select?: boolean;
|
|
325
349
|
/**
|
|
326
350
|
* Return type of HSTORE column.
|
|
327
351
|
* Returns value as string or as object.
|
package/decorator/orm.mjs
CHANGED
|
@@ -1,92 +1,92 @@
|
|
|
1
1
|
import "../vendor/Package.4.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
import "../src/decorators/orm/AfterRecover.mjs";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
import "../src/decorators/orm/AfterRemove.mjs";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
import "../src/decorators/orm/AfterInsert.mjs";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
import "../src/decorators/orm/AfterLoad.mjs";
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
import "../src/decorators/orm/AfterSoftRemove.mjs";
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
import "../src/decorators/orm/AfterUpdate.mjs";
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
import "../src/decorators/orm/BeforeInsert.mjs";
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
import "../src/decorators/orm/BeforeRecover.mjs";
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
import "../src/decorators/orm/BeforeRemove.mjs";
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
import "../src/decorators/orm/BeforeSoftRemove.mjs";
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
import "../src/decorators/orm/BeforeUpdate.mjs";
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
import "../src/decorators/orm/Check.mjs";
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
import "../src/decorators/orm/ChildEntity.mjs";
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
import "../src/decorators/orm/Column.mjs";
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
import "../src/decorators/orm/CreateDateColumn.mjs";
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
import "../src/decorators/orm/DeleteDateColumn.mjs";
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
import "../src/decorators/orm/Entity.mjs";
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
import "../src/decorators/orm/EventSubscriber.mjs";
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
import "../src/decorators/orm/Exclusion.mjs";
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
import "../src/decorators/orm/Generated.mjs";
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
import "../src/decorators/orm/Index.mjs";
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
import "../src/decorators/orm/JoinColumn.mjs";
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
import "../src/decorators/orm/JoinTable.mjs";
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
import "../src/decorators/orm/ManyToMany.mjs";
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
import "../src/decorators/orm/ManyToOne.mjs";
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
import "../src/decorators/orm/ObjectIdColumn.mjs";
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
import "../src/decorators/orm/OneToMany.mjs";
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
import "../src/decorators/orm/OneToOne.mjs";
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
import "../src/decorators/orm/PrimaryColumn.mjs";
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
import "../src/decorators/orm/PrimaryGeneratedColumn.mjs";
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
import "../src/decorators/orm/RelationId.mjs";
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
import "../src/decorators/orm/TableInheritance.mjs";
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
import "../src/decorators/orm/Tree.mjs";
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
import "../src/decorators/orm/TreeChildren.mjs";
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
import "../src/decorators/orm/TreeLevelColumn.mjs";
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
import "../src/decorators/orm/TreeParent.mjs";
|
|
74
74
|
|
|
75
|
-
|
|
75
|
+
import "../src/decorators/orm/Unique.mjs";
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
import "../src/decorators/orm/UpdateDateColumn.mjs";
|
|
78
78
|
|
|
79
|
-
|
|
79
|
+
import "../src/decorators/orm/VersionColumn.mjs";
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
import "../src/decorators/orm/ViewColumn.mjs";
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
import "../src/decorators/orm/ViewEntity.mjs";
|
|
84
84
|
|
|
85
|
-
|
|
85
|
+
import "../src/decorators/orm/VirtualColumn.mjs";
|
|
86
86
|
|
|
87
|
-
|
|
87
|
+
export { b as AfterInsert, c as AfterLoad, A as AfterRecover, a as AfterRemove, d as AfterSoftRemove, e as AfterUpdate, B as BeforeInsert, f as BeforeRecover, g as BeforeRemove, h as BeforeSoftRemove, i as BeforeUpdate, C as Check, j as ChildEntity, k as Column, l as CreateDateColumn, D as DeleteDateColumn, E as Entity, m as EventSubscriber, n as Exclusion, G as Generated, I as Index, J as JoinColumn, o as JoinTable, M as ManyToMany, p as ManyToOne, O as ObjectIdColumn, q as OneToMany, s as OneToOne, P as PrimaryColumn, t as PrimaryGeneratedColumn, R as RelationId, T as TableInheritance, u as Tree, v as TreeChildren, w as TreeLevelColumn, x as TreeParent, U as Unique, y as UpdateDateColumn, V as VersionColumn, z as ViewColumn, F as ViewEntity, H as VirtualColumn } from "../vendor/Package.122.mjs";
|
|
88
88
|
|
|
89
|
-
import "../vendor/Package.
|
|
89
|
+
import "../vendor/Package.5.mjs";
|
|
90
90
|
|
|
91
91
|
import "../vendor/Package.13.mjs";
|
|
92
92
|
|
|
@@ -132,6 +132,8 @@ import "../vendor/Package.11.mjs";
|
|
|
132
132
|
|
|
133
133
|
import "url";
|
|
134
134
|
|
|
135
|
+
import "node:util";
|
|
136
|
+
|
|
135
137
|
import "../vendor/Package.63.mjs";
|
|
136
138
|
|
|
137
139
|
import "node:url";
|