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.
Files changed (111) hide show
  1. package/com/database.cjs +2 -0
  2. package/com/database.d.ts +2 -2
  3. package/com/database.mjs +2 -0
  4. package/decorator/orm.cjs +88 -86
  5. package/decorator/orm.d.ts +74 -50
  6. package/decorator/orm.mjs +46 -44
  7. package/orm.cjs +112 -1075
  8. package/orm.d.ts +5 -5
  9. package/orm.mjs +17 -1015
  10. package/package.json +1 -1
  11. package/provider/database.cjs +2 -0
  12. package/provider/database.d.ts +2 -2
  13. package/provider/database.mjs +2 -0
  14. package/src/components/Database.cjs +2 -0
  15. package/src/components/Database.mjs +2 -0
  16. package/src/decorators/orm/AfterInsert.cjs +7 -27
  17. package/src/decorators/orm/AfterInsert.mjs +6 -28
  18. package/src/decorators/orm/AfterLoad.cjs +7 -27
  19. package/src/decorators/orm/AfterLoad.mjs +6 -28
  20. package/src/decorators/orm/AfterRecover.cjs +7 -27
  21. package/src/decorators/orm/AfterRecover.mjs +6 -28
  22. package/src/decorators/orm/AfterRemove.cjs +7 -27
  23. package/src/decorators/orm/AfterRemove.mjs +6 -28
  24. package/src/decorators/orm/AfterSoftRemove.cjs +7 -27
  25. package/src/decorators/orm/AfterSoftRemove.mjs +6 -28
  26. package/src/decorators/orm/AfterUpdate.cjs +7 -27
  27. package/src/decorators/orm/AfterUpdate.mjs +6 -28
  28. package/src/decorators/orm/BeforeInsert.cjs +7 -27
  29. package/src/decorators/orm/BeforeInsert.mjs +6 -28
  30. package/src/decorators/orm/BeforeRecover.cjs +7 -27
  31. package/src/decorators/orm/BeforeRecover.mjs +6 -28
  32. package/src/decorators/orm/BeforeRemove.cjs +7 -27
  33. package/src/decorators/orm/BeforeRemove.mjs +6 -28
  34. package/src/decorators/orm/BeforeSoftRemove.cjs +7 -27
  35. package/src/decorators/orm/BeforeSoftRemove.mjs +6 -28
  36. package/src/decorators/orm/BeforeUpdate.cjs +7 -27
  37. package/src/decorators/orm/BeforeUpdate.mjs +6 -28
  38. package/src/decorators/orm/Check.cjs +7 -30
  39. package/src/decorators/orm/Check.mjs +6 -31
  40. package/src/decorators/orm/ChildEntity.cjs +7 -30
  41. package/src/decorators/orm/ChildEntity.mjs +6 -31
  42. package/src/decorators/orm/Column.cjs +7 -62
  43. package/src/decorators/orm/Column.mjs +6 -63
  44. package/src/decorators/orm/CreateDateColumn.cjs +7 -26
  45. package/src/decorators/orm/CreateDateColumn.mjs +6 -27
  46. package/src/decorators/orm/DeleteDateColumn.cjs +7 -26
  47. package/src/decorators/orm/DeleteDateColumn.mjs +6 -27
  48. package/src/decorators/orm/Entity.cjs +7 -36
  49. package/src/decorators/orm/Entity.mjs +6 -37
  50. package/src/decorators/orm/EventSubscriber.cjs +7 -23
  51. package/src/decorators/orm/EventSubscriber.mjs +6 -24
  52. package/src/decorators/orm/Exclusion.cjs +7 -30
  53. package/src/decorators/orm/Exclusion.mjs +6 -31
  54. package/src/decorators/orm/Generated.cjs +7 -25
  55. package/src/decorators/orm/Generated.mjs +6 -26
  56. package/src/decorators/orm/Index.cjs +7 -42
  57. package/src/decorators/orm/Index.mjs +6 -43
  58. package/src/decorators/orm/JoinColumn.cjs +7 -30
  59. package/src/decorators/orm/JoinColumn.mjs +6 -31
  60. package/src/decorators/orm/JoinTable.cjs +7 -31
  61. package/src/decorators/orm/JoinTable.mjs +6 -32
  62. package/src/decorators/orm/ManyToMany.cjs +7 -43
  63. package/src/decorators/orm/ManyToMany.mjs +6 -44
  64. package/src/decorators/orm/ManyToOne.cjs +7 -43
  65. package/src/decorators/orm/ManyToOne.mjs +6 -44
  66. package/src/decorators/orm/ObjectIdColumn.cjs +7 -29
  67. package/src/decorators/orm/ObjectIdColumn.mjs +6 -30
  68. package/src/decorators/orm/OneToMany.cjs +7 -35
  69. package/src/decorators/orm/OneToMany.mjs +6 -36
  70. package/src/decorators/orm/OneToOne.cjs +7 -43
  71. package/src/decorators/orm/OneToOne.mjs +6 -44
  72. package/src/decorators/orm/PrimaryColumn.cjs +7 -50
  73. package/src/decorators/orm/PrimaryColumn.mjs +6 -51
  74. package/src/decorators/orm/PrimaryGeneratedColumn.cjs +7 -55
  75. package/src/decorators/orm/PrimaryGeneratedColumn.mjs +6 -56
  76. package/src/decorators/orm/RelationId.cjs +7 -27
  77. package/src/decorators/orm/RelationId.mjs +6 -28
  78. package/src/decorators/orm/TableInheritance.cjs +7 -27
  79. package/src/decorators/orm/TableInheritance.mjs +6 -28
  80. package/src/decorators/orm/Tree.cjs +7 -25
  81. package/src/decorators/orm/Tree.mjs +6 -26
  82. package/src/decorators/orm/TreeChildren.cjs +7 -32
  83. package/src/decorators/orm/TreeChildren.mjs +6 -33
  84. package/src/decorators/orm/TreeLevelColumn.cjs +7 -26
  85. package/src/decorators/orm/TreeLevelColumn.mjs +6 -27
  86. package/src/decorators/orm/TreeParent.cjs +7 -32
  87. package/src/decorators/orm/TreeParent.mjs +6 -33
  88. package/src/decorators/orm/Unique.cjs +7 -45
  89. package/src/decorators/orm/Unique.mjs +6 -46
  90. package/src/decorators/orm/UpdateDateColumn.cjs +7 -26
  91. package/src/decorators/orm/UpdateDateColumn.mjs +6 -27
  92. package/src/decorators/orm/VersionColumn.cjs +7 -26
  93. package/src/decorators/orm/VersionColumn.mjs +6 -27
  94. package/src/decorators/orm/ViewColumn.cjs +7 -26
  95. package/src/decorators/orm/ViewColumn.mjs +6 -27
  96. package/src/decorators/orm/ViewEntity.cjs +7 -35
  97. package/src/decorators/orm/ViewEntity.mjs +6 -36
  98. package/src/decorators/orm/VirtualColumn.cjs +7 -43
  99. package/src/decorators/orm/VirtualColumn.mjs +6 -44
  100. package/src/lib/base/abstracts/Exception.cjs +7 -6
  101. package/src/lib/base/abstracts/Exception.mjs +1 -0
  102. package/src/providers/Database.cjs +2 -0
  103. package/src/providers/Database.mjs +2 -0
  104. package/vendor/Package.122.cjs +19932 -14856
  105. package/vendor/Package.122.mjs +32675 -27699
  106. package/vendor/Package.19.cjs +184 -195
  107. package/vendor/Package.19.mjs +176 -187
  108. package/vendor/Package.6.cjs +1 -1
  109. package/vendor/Package.6.mjs +1 -1
  110. package/vendor/TypeDef.4.d.ts +347 -181
  111. package/vendor/TypeDef.7.d.ts +1 -0
package/com/database.cjs CHANGED
@@ -182,6 +182,8 @@ require("crypto");
182
182
 
183
183
  require("fs/promises");
184
184
 
185
+ require("node:util");
186
+
185
187
  require("../vendor/Package.63.cjs");
186
188
 
187
189
  require("node:url");
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
@@ -176,6 +176,8 @@ import "crypto";
176
176
 
177
177
  import "fs/promises";
178
178
 
179
+ import "node:util";
180
+
179
181
  import "../vendor/Package.63.mjs";
180
182
 
181
183
  import "node:url";
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
- const e = require("../src/decorators/orm/AfterRecover.cjs");
9
+ require("../src/decorators/orm/AfterRecover.cjs");
10
10
 
11
- const r = require("../src/decorators/orm/AfterRemove.cjs");
11
+ require("../src/decorators/orm/AfterRemove.cjs");
12
12
 
13
- const o = require("../src/decorators/orm/AfterInsert.cjs");
13
+ require("../src/decorators/orm/AfterInsert.cjs");
14
14
 
15
- const s = require("../src/decorators/orm/AfterLoad.cjs");
15
+ require("../src/decorators/orm/AfterLoad.cjs");
16
16
 
17
- const t = require("../src/decorators/orm/AfterSoftRemove.cjs");
17
+ require("../src/decorators/orm/AfterSoftRemove.cjs");
18
18
 
19
- const c = require("../src/decorators/orm/AfterUpdate.cjs");
19
+ require("../src/decorators/orm/AfterUpdate.cjs");
20
20
 
21
- const n = require("../src/decorators/orm/BeforeInsert.cjs");
21
+ require("../src/decorators/orm/BeforeInsert.cjs");
22
22
 
23
- const a = require("../src/decorators/orm/BeforeRecover.cjs");
23
+ require("../src/decorators/orm/BeforeRecover.cjs");
24
24
 
25
- const i = require("../src/decorators/orm/BeforeRemove.cjs");
25
+ require("../src/decorators/orm/BeforeRemove.cjs");
26
26
 
27
- const u = require("../src/decorators/orm/BeforeSoftRemove.cjs");
27
+ require("../src/decorators/orm/BeforeSoftRemove.cjs");
28
28
 
29
- const m = require("../src/decorators/orm/BeforeUpdate.cjs");
29
+ require("../src/decorators/orm/BeforeUpdate.cjs");
30
30
 
31
- const d = require("../src/decorators/orm/Check.cjs");
31
+ require("../src/decorators/orm/Check.cjs");
32
32
 
33
- const q = require("../src/decorators/orm/ChildEntity.cjs");
33
+ require("../src/decorators/orm/ChildEntity.cjs");
34
34
 
35
- const l = require("../src/decorators/orm/Column.cjs");
35
+ require("../src/decorators/orm/Column.cjs");
36
36
 
37
- const j = require("../src/decorators/orm/CreateDateColumn.cjs");
37
+ require("../src/decorators/orm/CreateDateColumn.cjs");
38
38
 
39
- const p = require("../src/decorators/orm/DeleteDateColumn.cjs");
39
+ require("../src/decorators/orm/DeleteDateColumn.cjs");
40
40
 
41
- const x = require("../src/decorators/orm/Entity.cjs");
41
+ require("../src/decorators/orm/Entity.cjs");
42
42
 
43
- const C = require("../src/decorators/orm/EventSubscriber.cjs");
43
+ require("../src/decorators/orm/EventSubscriber.cjs");
44
44
 
45
- const f = require("../src/decorators/orm/Exclusion.cjs");
45
+ require("../src/decorators/orm/Exclusion.cjs");
46
46
 
47
- const v = require("../src/decorators/orm/Generated.cjs");
47
+ require("../src/decorators/orm/Generated.cjs");
48
48
 
49
- const y = require("../src/decorators/orm/Index.cjs");
49
+ require("../src/decorators/orm/Index.cjs");
50
50
 
51
- const T = require("../src/decorators/orm/JoinColumn.cjs");
51
+ require("../src/decorators/orm/JoinColumn.cjs");
52
52
 
53
- const P = require("../src/decorators/orm/JoinTable.cjs");
53
+ require("../src/decorators/orm/JoinTable.cjs");
54
54
 
55
- const R = require("../src/decorators/orm/ManyToMany.cjs");
55
+ require("../src/decorators/orm/ManyToMany.cjs");
56
56
 
57
- const b = require("../src/decorators/orm/ManyToOne.cjs");
57
+ require("../src/decorators/orm/ManyToOne.cjs");
58
58
 
59
- const A = require("../src/decorators/orm/ObjectIdColumn.cjs");
59
+ require("../src/decorators/orm/ObjectIdColumn.cjs");
60
60
 
61
- const I = require("../src/decorators/orm/OneToMany.cjs");
61
+ require("../src/decorators/orm/OneToMany.cjs");
62
62
 
63
- const g = require("../src/decorators/orm/OneToOne.cjs");
63
+ require("../src/decorators/orm/OneToOne.cjs");
64
64
 
65
- const k = require("../src/decorators/orm/PrimaryColumn.cjs");
65
+ require("../src/decorators/orm/PrimaryColumn.cjs");
66
66
 
67
- const O = require("../src/decorators/orm/PrimaryGeneratedColumn.cjs");
67
+ require("../src/decorators/orm/PrimaryGeneratedColumn.cjs");
68
68
 
69
- const B = require("../src/decorators/orm/RelationId.cjs");
69
+ require("../src/decorators/orm/RelationId.cjs");
70
70
 
71
- const E = require("../src/decorators/orm/TableInheritance.cjs");
71
+ require("../src/decorators/orm/TableInheritance.cjs");
72
72
 
73
- const h = require("../src/decorators/orm/Tree.cjs");
73
+ require("../src/decorators/orm/Tree.cjs");
74
74
 
75
- const M = require("../src/decorators/orm/TreeChildren.cjs");
75
+ require("../src/decorators/orm/TreeChildren.cjs");
76
76
 
77
- const D = require("../src/decorators/orm/TreeLevelColumn.cjs");
77
+ require("../src/decorators/orm/TreeLevelColumn.cjs");
78
78
 
79
- const U = require("../src/decorators/orm/TreeParent.cjs");
79
+ require("../src/decorators/orm/TreeParent.cjs");
80
80
 
81
- const V = require("../src/decorators/orm/Unique.cjs");
81
+ require("../src/decorators/orm/Unique.cjs");
82
82
 
83
- const S = require("../src/decorators/orm/UpdateDateColumn.cjs");
83
+ require("../src/decorators/orm/UpdateDateColumn.cjs");
84
84
 
85
- const w = require("../src/decorators/orm/VersionColumn.cjs");
85
+ require("../src/decorators/orm/VersionColumn.cjs");
86
86
 
87
- const G = require("../src/decorators/orm/ViewColumn.cjs");
87
+ require("../src/decorators/orm/ViewColumn.cjs");
88
88
 
89
- const J = require("../src/decorators/orm/ViewEntity.cjs");
89
+ require("../src/decorators/orm/ViewEntity.cjs");
90
90
 
91
- const L = require("../src/decorators/orm/VirtualColumn.cjs");
91
+ require("../src/decorators/orm/VirtualColumn.cjs");
92
92
 
93
- require("../vendor/Package.5.cjs");
93
+ const e = require("../vendor/Package.122.cjs");
94
94
 
95
- require("../vendor/Package.122.cjs");
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.AfterRecover = e.AfterRecover;
159
+ exports.AfterInsert = e.AfterInsert_2;
158
160
 
159
- exports.AfterRemove = r.AfterRemove;
161
+ exports.AfterLoad = e.AfterLoad_2;
160
162
 
161
- exports.AfterInsert = o.AfterInsert;
163
+ exports.AfterRecover = e.AfterRecover_2;
162
164
 
163
- exports.AfterLoad = s.AfterLoad;
165
+ exports.AfterRemove = e.AfterRemove_2;
164
166
 
165
- exports.AfterSoftRemove = t.AfterSoftRemove;
167
+ exports.AfterSoftRemove = e.AfterSoftRemove_2;
166
168
 
167
- exports.AfterUpdate = c.AfterUpdate;
169
+ exports.AfterUpdate = e.AfterUpdate_2;
168
170
 
169
- exports.BeforeInsert = n.BeforeInsert;
171
+ exports.BeforeInsert = e.BeforeInsert_2;
170
172
 
171
- exports.BeforeRecover = a.BeforeRecover;
173
+ exports.BeforeRecover = e.BeforeRecover_2;
172
174
 
173
- exports.BeforeRemove = i.BeforeRemove;
175
+ exports.BeforeRemove = e.BeforeRemove_2;
174
176
 
175
- exports.BeforeSoftRemove = u.BeforeSoftRemove;
177
+ exports.BeforeSoftRemove = e.BeforeSoftRemove_2;
176
178
 
177
- exports.BeforeUpdate = m.BeforeUpdate;
179
+ exports.BeforeUpdate = e.BeforeUpdate_2;
178
180
 
179
- exports.Check = d.Check;
181
+ exports.Check = e.Check_2;
180
182
 
181
- exports.ChildEntity = q.ChildEntity;
183
+ exports.ChildEntity = e.ChildEntity_2;
182
184
 
183
- exports.Column = l.Column;
185
+ exports.Column = e.Column_2;
184
186
 
185
- exports.CreateDateColumn = j.CreateDateColumn;
187
+ exports.CreateDateColumn = e.CreateDateColumn_2;
186
188
 
187
- exports.DeleteDateColumn = p.DeleteDateColumn;
189
+ exports.DeleteDateColumn = e.DeleteDateColumn_2;
188
190
 
189
- exports.Entity = x.Entity;
191
+ exports.Entity = e.Entity_2;
190
192
 
191
- exports.EventSubscriber = C.EventSubscriber;
193
+ exports.EventSubscriber = e.EventSubscriber_2;
192
194
 
193
- exports.Exclusion = f.Exclusion;
195
+ exports.Exclusion = e.Exclusion_2;
194
196
 
195
- exports.Generated = v.Generated;
197
+ exports.Generated = e.Generated_2;
196
198
 
197
- exports.Index = y.Index;
199
+ exports.Index = e.Index_2;
198
200
 
199
- exports.JoinColumn = T.JoinColumn;
201
+ exports.JoinColumn = e.JoinColumn_2;
200
202
 
201
- exports.JoinTable = P.JoinTable;
203
+ exports.JoinTable = e.JoinTable_2;
202
204
 
203
- exports.ManyToMany = R.ManyToMany;
205
+ exports.ManyToMany = e.ManyToMany_2;
204
206
 
205
- exports.ManyToOne = b.ManyToOne;
207
+ exports.ManyToOne = e.ManyToOne_2;
206
208
 
207
- exports.ObjectIdColumn = A.ObjectIdColumn;
209
+ exports.ObjectIdColumn = e.ObjectIdColumn_2;
208
210
 
209
- exports.OneToMany = I.OneToMany;
211
+ exports.OneToMany = e.OneToMany_2;
210
212
 
211
- exports.OneToOne = g.OneToOne;
213
+ exports.OneToOne = e.OneToOne_2;
212
214
 
213
- exports.PrimaryColumn = k.PrimaryColumn;
215
+ exports.PrimaryColumn = e.PrimaryColumn_2;
214
216
 
215
- exports.PrimaryGeneratedColumn = O.PrimaryGeneratedColumn;
217
+ exports.PrimaryGeneratedColumn = e.PrimaryGeneratedColumn_2;
216
218
 
217
- exports.RelationId = B.RelationId;
219
+ exports.RelationId = e.RelationId_2;
218
220
 
219
- exports.TableInheritance = E.TableInheritance;
221
+ exports.TableInheritance = e.TableInheritance_2;
220
222
 
221
- exports.Tree = h.Tree;
223
+ exports.Tree = e.Tree_2;
222
224
 
223
- exports.TreeChildren = M.TreeChildren;
225
+ exports.TreeChildren = e.TreeChildren_2;
224
226
 
225
- exports.TreeLevelColumn = D.TreeLevelColumn;
227
+ exports.TreeLevelColumn = e.TreeLevelColumn_2;
226
228
 
227
- exports.TreeParent = U.TreeParent;
229
+ exports.TreeParent = e.TreeParent_2;
228
230
 
229
- exports.Unique = V.Unique;
231
+ exports.Unique = e.Unique_2;
230
232
 
231
- exports.UpdateDateColumn = S.UpdateDateColumn;
233
+ exports.UpdateDateColumn = e.UpdateDateColumn_2;
232
234
 
233
- exports.VersionColumn = w.VersionColumn;
235
+ exports.VersionColumn = e.VersionColumn_2;
234
236
 
235
- exports.ViewColumn = G.ViewColumn;
237
+ exports.ViewColumn = e.ViewColumn_2;
236
238
 
237
- exports.ViewEntity = J.ViewEntity;
239
+ exports.ViewEntity = e.ViewEntity_2;
238
240
 
239
- exports.VirtualColumn = L.VirtualColumn;
241
+ exports.VirtualColumn = e.VirtualColumn_2;
@@ -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, p as WithWidthColumnType, q as WithPrecisionColumnType, P as PrimaryGeneratedColumnType, r as ColumnType, V as ValueTransformer, J as JoinColumnOptions, s as JoinTableOptions, t as JoinTableMultipleColumnsOptions, u as ObjectType, v as RelationOptions, S as SelectQueryBuilder, a as DataSource, w as OnDeleteType, x as TreeType, y as ClosureTreeOptions, z as DeferrableType } from '../vendor/TypeDef.4.js';
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
- * Options for columns that can define a length of the column type.
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 ColumnNumericOptions {
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
- * Puts ZEROFILL attribute on to numeric column. Works only for MySQL.
38
- * If you specify ZEROFILL for a numeric column, MySQL automatically adds the UNSIGNED attribute to the column
16
+ * Embedded column prefix.
17
+ * If set to empty string or false, then prefix is not set at all.
39
18
  */
40
- zerofill?: boolean;
19
+ prefix?: string | boolean;
41
20
  /**
42
- * Puts UNSIGNED attribute on to numeric column. Works only for MySQL.
21
+ * Indicates if this embedded is in array mode.
22
+ *
23
+ * This option works only in mongodb.
43
24
  */
44
- unsigned?: boolean;
25
+ array?: boolean;
45
26
  }
46
27
 
47
28
  /**
@@ -59,45 +40,69 @@ interface ColumnEnumOptions {
59
40
  }
60
41
 
61
42
  /**
62
- * Column options specific to embedded column.
43
+ * Column options for enum-typed columns.
63
44
  */
64
- interface ColumnEmbeddedOptions {
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
- * Indicates if this embedded is in array mode.
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
- array?: boolean;
50
+ hstoreType?: string;
76
51
  }
77
52
 
78
53
  /**
79
- * Column options for enum-typed columns.
54
+ * Options for numeric column types where user can specify scale and precision.
80
55
  */
81
- interface ColumnHstoreOptions {
56
+ interface ColumnNumericOptions {
82
57
  /**
83
- * Return type of HSTORE column.
84
- * Returns value as string or as object.
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
- hstoreType?: string;
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 ColumnWithWidthOptions {
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 the UNSIGNED attribute to this column
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: WithWidthColumnType, options?: ColumnCommonOptions & ColumnWithWidthOptions): PropertyDecorator;
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
- export { AfterRecover } from "../src/decorators/orm/AfterRecover.mjs";
3
+ import "../src/decorators/orm/AfterRecover.mjs";
4
4
 
5
- export { AfterRemove } from "../src/decorators/orm/AfterRemove.mjs";
5
+ import "../src/decorators/orm/AfterRemove.mjs";
6
6
 
7
- export { AfterInsert } from "../src/decorators/orm/AfterInsert.mjs";
7
+ import "../src/decorators/orm/AfterInsert.mjs";
8
8
 
9
- export { AfterLoad } from "../src/decorators/orm/AfterLoad.mjs";
9
+ import "../src/decorators/orm/AfterLoad.mjs";
10
10
 
11
- export { AfterSoftRemove } from "../src/decorators/orm/AfterSoftRemove.mjs";
11
+ import "../src/decorators/orm/AfterSoftRemove.mjs";
12
12
 
13
- export { AfterUpdate } from "../src/decorators/orm/AfterUpdate.mjs";
13
+ import "../src/decorators/orm/AfterUpdate.mjs";
14
14
 
15
- export { BeforeInsert } from "../src/decorators/orm/BeforeInsert.mjs";
15
+ import "../src/decorators/orm/BeforeInsert.mjs";
16
16
 
17
- export { BeforeRecover } from "../src/decorators/orm/BeforeRecover.mjs";
17
+ import "../src/decorators/orm/BeforeRecover.mjs";
18
18
 
19
- export { BeforeRemove } from "../src/decorators/orm/BeforeRemove.mjs";
19
+ import "../src/decorators/orm/BeforeRemove.mjs";
20
20
 
21
- export { BeforeSoftRemove } from "../src/decorators/orm/BeforeSoftRemove.mjs";
21
+ import "../src/decorators/orm/BeforeSoftRemove.mjs";
22
22
 
23
- export { BeforeUpdate } from "../src/decorators/orm/BeforeUpdate.mjs";
23
+ import "../src/decorators/orm/BeforeUpdate.mjs";
24
24
 
25
- export { Check } from "../src/decorators/orm/Check.mjs";
25
+ import "../src/decorators/orm/Check.mjs";
26
26
 
27
- export { ChildEntity } from "../src/decorators/orm/ChildEntity.mjs";
27
+ import "../src/decorators/orm/ChildEntity.mjs";
28
28
 
29
- export { Column } from "../src/decorators/orm/Column.mjs";
29
+ import "../src/decorators/orm/Column.mjs";
30
30
 
31
- export { CreateDateColumn } from "../src/decorators/orm/CreateDateColumn.mjs";
31
+ import "../src/decorators/orm/CreateDateColumn.mjs";
32
32
 
33
- export { DeleteDateColumn } from "../src/decorators/orm/DeleteDateColumn.mjs";
33
+ import "../src/decorators/orm/DeleteDateColumn.mjs";
34
34
 
35
- export { Entity } from "../src/decorators/orm/Entity.mjs";
35
+ import "../src/decorators/orm/Entity.mjs";
36
36
 
37
- export { EventSubscriber } from "../src/decorators/orm/EventSubscriber.mjs";
37
+ import "../src/decorators/orm/EventSubscriber.mjs";
38
38
 
39
- export { Exclusion } from "../src/decorators/orm/Exclusion.mjs";
39
+ import "../src/decorators/orm/Exclusion.mjs";
40
40
 
41
- export { Generated } from "../src/decorators/orm/Generated.mjs";
41
+ import "../src/decorators/orm/Generated.mjs";
42
42
 
43
- export { Index } from "../src/decorators/orm/Index.mjs";
43
+ import "../src/decorators/orm/Index.mjs";
44
44
 
45
- export { JoinColumn } from "../src/decorators/orm/JoinColumn.mjs";
45
+ import "../src/decorators/orm/JoinColumn.mjs";
46
46
 
47
- export { JoinTable } from "../src/decorators/orm/JoinTable.mjs";
47
+ import "../src/decorators/orm/JoinTable.mjs";
48
48
 
49
- export { ManyToMany } from "../src/decorators/orm/ManyToMany.mjs";
49
+ import "../src/decorators/orm/ManyToMany.mjs";
50
50
 
51
- export { ManyToOne } from "../src/decorators/orm/ManyToOne.mjs";
51
+ import "../src/decorators/orm/ManyToOne.mjs";
52
52
 
53
- export { ObjectIdColumn } from "../src/decorators/orm/ObjectIdColumn.mjs";
53
+ import "../src/decorators/orm/ObjectIdColumn.mjs";
54
54
 
55
- export { OneToMany } from "../src/decorators/orm/OneToMany.mjs";
55
+ import "../src/decorators/orm/OneToMany.mjs";
56
56
 
57
- export { OneToOne } from "../src/decorators/orm/OneToOne.mjs";
57
+ import "../src/decorators/orm/OneToOne.mjs";
58
58
 
59
- export { PrimaryColumn } from "../src/decorators/orm/PrimaryColumn.mjs";
59
+ import "../src/decorators/orm/PrimaryColumn.mjs";
60
60
 
61
- export { PrimaryGeneratedColumn } from "../src/decorators/orm/PrimaryGeneratedColumn.mjs";
61
+ import "../src/decorators/orm/PrimaryGeneratedColumn.mjs";
62
62
 
63
- export { RelationId } from "../src/decorators/orm/RelationId.mjs";
63
+ import "../src/decorators/orm/RelationId.mjs";
64
64
 
65
- export { TableInheritance } from "../src/decorators/orm/TableInheritance.mjs";
65
+ import "../src/decorators/orm/TableInheritance.mjs";
66
66
 
67
- export { Tree } from "../src/decorators/orm/Tree.mjs";
67
+ import "../src/decorators/orm/Tree.mjs";
68
68
 
69
- export { TreeChildren } from "../src/decorators/orm/TreeChildren.mjs";
69
+ import "../src/decorators/orm/TreeChildren.mjs";
70
70
 
71
- export { TreeLevelColumn } from "../src/decorators/orm/TreeLevelColumn.mjs";
71
+ import "../src/decorators/orm/TreeLevelColumn.mjs";
72
72
 
73
- export { TreeParent } from "../src/decorators/orm/TreeParent.mjs";
73
+ import "../src/decorators/orm/TreeParent.mjs";
74
74
 
75
- export { Unique } from "../src/decorators/orm/Unique.mjs";
75
+ import "../src/decorators/orm/Unique.mjs";
76
76
 
77
- export { UpdateDateColumn } from "../src/decorators/orm/UpdateDateColumn.mjs";
77
+ import "../src/decorators/orm/UpdateDateColumn.mjs";
78
78
 
79
- export { VersionColumn } from "../src/decorators/orm/VersionColumn.mjs";
79
+ import "../src/decorators/orm/VersionColumn.mjs";
80
80
 
81
- export { ViewColumn } from "../src/decorators/orm/ViewColumn.mjs";
81
+ import "../src/decorators/orm/ViewColumn.mjs";
82
82
 
83
- export { ViewEntity } from "../src/decorators/orm/ViewEntity.mjs";
83
+ import "../src/decorators/orm/ViewEntity.mjs";
84
84
 
85
- export { VirtualColumn } from "../src/decorators/orm/VirtualColumn.mjs";
85
+ import "../src/decorators/orm/VirtualColumn.mjs";
86
86
 
87
- import "../vendor/Package.5.mjs";
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.122.mjs";
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";