@spinajs/orm-sql 2.0.46 → 2.0.49
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 +11 -11
- package/lib/builders.d.ts +1 -2
- package/lib/builders.d.ts.map +1 -0
- package/lib/builders.js +7 -10
- package/lib/builders.js.map +1 -1
- package/lib/compilers.d.ts +1 -0
- package/lib/compilers.d.ts.map +1 -0
- package/lib/compilers.js +138 -146
- package/lib/compilers.js.map +1 -1
- package/lib/converters.d.ts +1 -0
- package/lib/converters.d.ts.map +1 -0
- package/lib/converters.js +9 -14
- package/lib/converters.js.map +1 -1
- package/lib/index.d.ts +3 -2
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +47 -65
- package/lib/index.js.map +1 -1
- package/lib/statements.d.ts +1 -0
- package/lib/statements.d.ts.map +1 -0
- package/lib/statements.js +45 -51
- package/lib/statements.js.map +1 -1
- package/package.json +53 -50
- package/lib/orm/src/builders.d.ts +0 -636
- package/lib/orm/src/builders.js +0 -1509
- package/lib/orm/src/builders.js.map +0 -1
- package/lib/orm/src/converters.d.ts +0 -14
- package/lib/orm/src/converters.js +0 -57
- package/lib/orm/src/converters.js.map +0 -1
- package/lib/orm/src/decorators.d.ts +0 -152
- package/lib/orm/src/decorators.js +0 -454
- package/lib/orm/src/decorators.js.map +0 -1
- package/lib/orm/src/dehydrators.d.ts +0 -7
- package/lib/orm/src/dehydrators.js +0 -41
- package/lib/orm/src/dehydrators.js.map +0 -1
- package/lib/orm/src/driver.d.ts +0 -80
- package/lib/orm/src/driver.js +0 -104
- package/lib/orm/src/driver.js.map +0 -1
- package/lib/orm/src/enums.d.ts +0 -115
- package/lib/orm/src/enums.js +0 -125
- package/lib/orm/src/enums.js.map +0 -1
- package/lib/orm/src/exceptions.d.ts +0 -6
- package/lib/orm/src/exceptions.js +0 -11
- package/lib/orm/src/exceptions.js.map +0 -1
- package/lib/orm/src/hydrators.d.ts +0 -19
- package/lib/orm/src/hydrators.js +0 -110
- package/lib/orm/src/hydrators.js.map +0 -1
- package/lib/orm/src/interfaces.d.ts +0 -794
- package/lib/orm/src/interfaces.js +0 -293
- package/lib/orm/src/interfaces.js.map +0 -1
- package/lib/orm/src/model.d.ts +0 -310
- package/lib/orm/src/model.js +0 -779
- package/lib/orm/src/model.js.map +0 -1
- package/lib/orm/src/orm.d.ts +0 -61
- package/lib/orm/src/orm.js +0 -341
- package/lib/orm/src/orm.js.map +0 -1
- package/lib/orm/src/relations.d.ts +0 -150
- package/lib/orm/src/relations.js +0 -681
- package/lib/orm/src/relations.js.map +0 -1
- package/lib/orm/src/statements.d.ts +0 -140
- package/lib/orm/src/statements.js +0 -314
- package/lib/orm/src/statements.js.map +0 -1
- package/lib/orm/src/types.d.ts +0 -11
- package/lib/orm/src/types.js +0 -3
- package/lib/orm/src/types.js.map +0 -1
- package/lib/orm-sql/src/builders.d.ts +0 -11
- package/lib/orm-sql/src/builders.js +0 -42
- package/lib/orm-sql/src/builders.js.map +0 -1
- package/lib/orm-sql/src/compilers.d.ts +0 -226
- package/lib/orm-sql/src/compilers.js +0 -1016
- package/lib/orm-sql/src/compilers.js.map +0 -1
- package/lib/orm-sql/src/converters.d.ts +0 -10
- package/lib/orm-sql/src/converters.js +0 -39
- package/lib/orm-sql/src/converters.js.map +0 -1
- package/lib/orm-sql/src/index.d.ts +0 -6
- package/lib/orm-sql/src/index.js +0 -70
- package/lib/orm-sql/src/index.js.map +0 -1
- package/lib/orm-sql/src/statements.d.ts +0 -46
- package/lib/orm-sql/src/statements.js +0 -268
- package/lib/orm-sql/src/statements.js.map +0 -1
package/lib/compilers.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,21 +7,16 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
9
|
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.SqlDropEventQueryCompiler = exports.SqlEventQueryCompiler = exports.SqlAlterColumnQueryCompiler = exports.SqlColumnQueryCompiler = exports.SqlTableQueryCompiler = exports.SqlTableHistoryQueryCompiler = exports.SqlTruncateTableQueryCompiler = exports.SqlTableCloneQueryCompiler = exports.SqlAlterTableQueryCompiler = exports.SqlDropTableQueryCompiler = exports.SqlInsertQueryCompiler = exports.SqlIndexQueryCompiler = exports.SqlOnDuplicateQueryCompiler = exports.SqlDeleteQueryCompiler = exports.SqlUpdateQueryCompiler = exports.SqlSelectQueryCompiler = exports.SqlJoinCompiler = exports.SqlWhereCompiler = exports.SqlColumnsCompiler = exports.SqlGroupByCompiler = exports.SqlLimitQueryCompiler = exports.SqlForeignKeyQueryCompiler = exports.SqlWithRecursiveCompiler = exports.SqlOrderByQueryCompiler = exports.SqlQueryCompiler = exports.SqlTableAliasCompiler = void 0;
|
|
16
10
|
/* eslint-disable @typescript-eslint/no-unsafe-call */
|
|
17
11
|
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
|
18
12
|
/* eslint-disable @typescript-eslint/no-empty-interface */
|
|
19
13
|
/* eslint-disable prettier/prettier */
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
class SqlTableAliasCompiler {
|
|
14
|
+
import { InvalidOperation, InvalidArgument } from '../../exceptions/lib/index.js';
|
|
15
|
+
import { LimitBuilder, DropTableQueryBuilder, AlterColumnQueryBuilder, TableCloneQueryCompiler, OnDuplicateQueryBuilder, DeleteQueryBuilder, LimitQueryCompiler, InsertQueryBuilder, OrderByBuilder, SelectQueryBuilder, UpdateQueryBuilder, SelectQueryCompiler, TableQueryCompiler, TableQueryBuilder, ColumnQueryBuilder, ColumnQueryCompiler, RawQuery, OrderByQueryCompiler, OnDuplicateQueryCompiler, IndexQueryCompiler, IndexQueryBuilder, ForeignKeyBuilder, ForeignKeyQueryCompiler, AlterTableQueryBuilder, CloneTableQueryBuilder, AlterTableQueryCompiler, ColumnAlterationType, AlterColumnQueryCompiler, TableAliasCompiler, DropTableCompiler, DropEventQueryBuilder, TableHistoryQueryCompiler, EventQueryBuilder } from '@spinajs/orm';
|
|
16
|
+
import { use } from 'typescript-mix';
|
|
17
|
+
import { NewInstance, Inject, Container } from '@spinajs/di';
|
|
18
|
+
import _ from 'lodash';
|
|
19
|
+
export class SqlTableAliasCompiler {
|
|
26
20
|
compile(builder, tbl) {
|
|
27
21
|
let table = '';
|
|
28
22
|
if (builder.Database) {
|
|
@@ -35,14 +29,13 @@ class SqlTableAliasCompiler {
|
|
|
35
29
|
return table;
|
|
36
30
|
}
|
|
37
31
|
}
|
|
38
|
-
|
|
39
|
-
let SqlQueryCompiler = class SqlQueryCompiler extends orm_1.SelectQueryCompiler {
|
|
32
|
+
let SqlQueryCompiler = class SqlQueryCompiler extends SelectQueryCompiler {
|
|
40
33
|
constructor(_builder, _container) {
|
|
41
34
|
super();
|
|
42
35
|
this._builder = _builder;
|
|
43
36
|
this._container = _container;
|
|
44
37
|
if (_builder === null && _builder === undefined) {
|
|
45
|
-
throw new
|
|
38
|
+
throw new InvalidArgument('builder cannot be null or undefined');
|
|
46
39
|
}
|
|
47
40
|
}
|
|
48
41
|
tryConvertValue(v) {
|
|
@@ -56,15 +49,15 @@ let SqlQueryCompiler = class SqlQueryCompiler extends orm_1.SelectQueryCompiler
|
|
|
56
49
|
}
|
|
57
50
|
};
|
|
58
51
|
SqlQueryCompiler = __decorate([
|
|
59
|
-
|
|
52
|
+
NewInstance(),
|
|
60
53
|
__metadata("design:paramtypes", [Object, Object])
|
|
61
54
|
], SqlQueryCompiler);
|
|
62
|
-
|
|
63
|
-
let SqlOrderByQueryCompiler = class SqlOrderByQueryCompiler extends
|
|
55
|
+
export { SqlQueryCompiler };
|
|
56
|
+
let SqlOrderByQueryCompiler = class SqlOrderByQueryCompiler extends OrderByQueryCompiler {
|
|
64
57
|
constructor(builder) {
|
|
65
58
|
super();
|
|
66
59
|
if (!builder) {
|
|
67
|
-
throw new
|
|
60
|
+
throw new InvalidOperation('builder cannot be null or undefined');
|
|
68
61
|
}
|
|
69
62
|
this._builder = builder;
|
|
70
63
|
}
|
|
@@ -83,10 +76,10 @@ let SqlOrderByQueryCompiler = class SqlOrderByQueryCompiler extends orm_1.OrderB
|
|
|
83
76
|
}
|
|
84
77
|
};
|
|
85
78
|
SqlOrderByQueryCompiler = __decorate([
|
|
86
|
-
|
|
87
|
-
__metadata("design:paramtypes", [
|
|
79
|
+
NewInstance(),
|
|
80
|
+
__metadata("design:paramtypes", [OrderByBuilder])
|
|
88
81
|
], SqlOrderByQueryCompiler);
|
|
89
|
-
|
|
82
|
+
export { SqlOrderByQueryCompiler };
|
|
90
83
|
let SqlWithRecursiveCompiler = class SqlWithRecursiveCompiler {
|
|
91
84
|
recursive(builder) {
|
|
92
85
|
const statement = builder.CteRecursive.build();
|
|
@@ -104,9 +97,9 @@ let SqlWithRecursiveCompiler = class SqlWithRecursiveCompiler {
|
|
|
104
97
|
}
|
|
105
98
|
};
|
|
106
99
|
SqlWithRecursiveCompiler = __decorate([
|
|
107
|
-
|
|
100
|
+
NewInstance()
|
|
108
101
|
], SqlWithRecursiveCompiler);
|
|
109
|
-
|
|
102
|
+
export { SqlWithRecursiveCompiler };
|
|
110
103
|
let SqlForeignKeyQueryCompiler = class SqlForeignKeyQueryCompiler {
|
|
111
104
|
constructor(_builder) {
|
|
112
105
|
this._builder = _builder;
|
|
@@ -123,15 +116,15 @@ let SqlForeignKeyQueryCompiler = class SqlForeignKeyQueryCompiler {
|
|
|
123
116
|
}
|
|
124
117
|
};
|
|
125
118
|
SqlForeignKeyQueryCompiler = __decorate([
|
|
126
|
-
|
|
127
|
-
__metadata("design:paramtypes", [
|
|
119
|
+
NewInstance(),
|
|
120
|
+
__metadata("design:paramtypes", [ForeignKeyBuilder])
|
|
128
121
|
], SqlForeignKeyQueryCompiler);
|
|
129
|
-
|
|
130
|
-
let SqlLimitQueryCompiler = class SqlLimitQueryCompiler extends
|
|
122
|
+
export { SqlForeignKeyQueryCompiler };
|
|
123
|
+
let SqlLimitQueryCompiler = class SqlLimitQueryCompiler extends LimitQueryCompiler {
|
|
131
124
|
constructor(builder) {
|
|
132
125
|
super();
|
|
133
126
|
if (!builder) {
|
|
134
|
-
throw new
|
|
127
|
+
throw new InvalidOperation('builder cannot be null or undefined');
|
|
135
128
|
}
|
|
136
129
|
this._builder = builder;
|
|
137
130
|
}
|
|
@@ -159,10 +152,10 @@ let SqlLimitQueryCompiler = class SqlLimitQueryCompiler extends orm_1.LimitQuery
|
|
|
159
152
|
}
|
|
160
153
|
};
|
|
161
154
|
SqlLimitQueryCompiler = __decorate([
|
|
162
|
-
|
|
163
|
-
__metadata("design:paramtypes", [
|
|
155
|
+
NewInstance(),
|
|
156
|
+
__metadata("design:paramtypes", [LimitBuilder])
|
|
164
157
|
], SqlLimitQueryCompiler);
|
|
165
|
-
|
|
158
|
+
export { SqlLimitQueryCompiler };
|
|
166
159
|
let SqlGroupByCompiler = class SqlGroupByCompiler {
|
|
167
160
|
group(builder) {
|
|
168
161
|
let bindings = [];
|
|
@@ -177,9 +170,9 @@ let SqlGroupByCompiler = class SqlGroupByCompiler {
|
|
|
177
170
|
}
|
|
178
171
|
};
|
|
179
172
|
SqlGroupByCompiler = __decorate([
|
|
180
|
-
|
|
173
|
+
NewInstance()
|
|
181
174
|
], SqlGroupByCompiler);
|
|
182
|
-
|
|
175
|
+
export { SqlGroupByCompiler };
|
|
183
176
|
let SqlColumnsCompiler = class SqlColumnsCompiler {
|
|
184
177
|
columns(builder) {
|
|
185
178
|
return {
|
|
@@ -194,9 +187,9 @@ let SqlColumnsCompiler = class SqlColumnsCompiler {
|
|
|
194
187
|
}
|
|
195
188
|
};
|
|
196
189
|
SqlColumnsCompiler = __decorate([
|
|
197
|
-
|
|
190
|
+
NewInstance()
|
|
198
191
|
], SqlColumnsCompiler);
|
|
199
|
-
|
|
192
|
+
export { SqlColumnsCompiler };
|
|
200
193
|
let SqlWhereCompiler = class SqlWhereCompiler {
|
|
201
194
|
where(builder) {
|
|
202
195
|
const where = [];
|
|
@@ -216,22 +209,22 @@ let SqlWhereCompiler = class SqlWhereCompiler {
|
|
|
216
209
|
}
|
|
217
210
|
};
|
|
218
211
|
SqlWhereCompiler = __decorate([
|
|
219
|
-
|
|
212
|
+
NewInstance()
|
|
220
213
|
], SqlWhereCompiler);
|
|
221
|
-
|
|
214
|
+
export { SqlWhereCompiler };
|
|
222
215
|
let SqlJoinCompiler = class SqlJoinCompiler {
|
|
223
216
|
join(builder) {
|
|
224
217
|
const result = builder.JoinStatements.map((s) => s.build());
|
|
225
218
|
return {
|
|
226
|
-
bindings:
|
|
227
|
-
expression:
|
|
219
|
+
bindings: _.flatMap(result, (r) => r.Bindings),
|
|
220
|
+
expression: _.flatMap(result, (r) => r.Statements).join(' '),
|
|
228
221
|
};
|
|
229
222
|
}
|
|
230
223
|
};
|
|
231
224
|
SqlJoinCompiler = __decorate([
|
|
232
|
-
|
|
225
|
+
NewInstance()
|
|
233
226
|
], SqlJoinCompiler);
|
|
234
|
-
|
|
227
|
+
export { SqlJoinCompiler };
|
|
235
228
|
let SqlSelectQueryCompiler = class SqlSelectQueryCompiler extends SqlQueryCompiler {
|
|
236
229
|
constructor(_container, builder) {
|
|
237
230
|
super(builder, _container);
|
|
@@ -260,11 +253,11 @@ let SqlSelectQueryCompiler = class SqlSelectQueryCompiler extends SqlQueryCompil
|
|
|
260
253
|
};
|
|
261
254
|
}
|
|
262
255
|
limit() {
|
|
263
|
-
const compiler = this._container.resolve(
|
|
256
|
+
const compiler = this._container.resolve(LimitQueryCompiler, [this._builder]);
|
|
264
257
|
return compiler.compile();
|
|
265
258
|
}
|
|
266
259
|
sort() {
|
|
267
|
-
const compiler = this._container.resolve(
|
|
260
|
+
const compiler = this._container.resolve(OrderByQueryCompiler, [this._builder]);
|
|
268
261
|
return compiler.compile();
|
|
269
262
|
}
|
|
270
263
|
select() {
|
|
@@ -278,19 +271,19 @@ let SqlSelectQueryCompiler = class SqlSelectQueryCompiler extends SqlQueryCompil
|
|
|
278
271
|
return _stmt + this.columns(this._builder).expression;
|
|
279
272
|
}
|
|
280
273
|
from() {
|
|
281
|
-
return 'FROM ' + this._container.resolve(
|
|
274
|
+
return 'FROM ' + this._container.resolve(TableAliasCompiler).compile(this._builder);
|
|
282
275
|
}
|
|
283
276
|
};
|
|
284
277
|
__decorate([
|
|
285
|
-
|
|
278
|
+
use(SqlWhereCompiler, SqlColumnsCompiler, TableAliasCompiler, SqlJoinCompiler, SqlWithRecursiveCompiler, SqlGroupByCompiler),
|
|
286
279
|
__metadata("design:type", Object)
|
|
287
280
|
], SqlSelectQueryCompiler.prototype, "this", void 0);
|
|
288
281
|
SqlSelectQueryCompiler = __decorate([
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
__metadata("design:paramtypes", [Object,
|
|
282
|
+
NewInstance(),
|
|
283
|
+
Inject(Container),
|
|
284
|
+
__metadata("design:paramtypes", [Object, SelectQueryBuilder])
|
|
292
285
|
], SqlSelectQueryCompiler);
|
|
293
|
-
|
|
286
|
+
export { SqlSelectQueryCompiler };
|
|
294
287
|
let SqlUpdateQueryCompiler = class SqlUpdateQueryCompiler extends SqlQueryCompiler {
|
|
295
288
|
constructor(_container, builder) {
|
|
296
289
|
super(builder, _container);
|
|
@@ -322,18 +315,18 @@ let SqlUpdateQueryCompiler = class SqlUpdateQueryCompiler extends SqlQueryCompil
|
|
|
322
315
|
};
|
|
323
316
|
}
|
|
324
317
|
table() {
|
|
325
|
-
return `UPDATE ${this._container.resolve(
|
|
318
|
+
return `UPDATE ${this._container.resolve(TableAliasCompiler).compile(this._builder)} SET`;
|
|
326
319
|
}
|
|
327
320
|
};
|
|
328
321
|
__decorate([
|
|
329
|
-
|
|
322
|
+
use(SqlWhereCompiler, TableAliasCompiler),
|
|
330
323
|
__metadata("design:type", Object)
|
|
331
324
|
], SqlUpdateQueryCompiler.prototype, "this", void 0);
|
|
332
325
|
SqlUpdateQueryCompiler = __decorate([
|
|
333
|
-
|
|
334
|
-
__metadata("design:paramtypes", [Object,
|
|
326
|
+
NewInstance(),
|
|
327
|
+
__metadata("design:paramtypes", [Object, UpdateQueryBuilder])
|
|
335
328
|
], SqlUpdateQueryCompiler);
|
|
336
|
-
|
|
329
|
+
export { SqlUpdateQueryCompiler };
|
|
337
330
|
let SqlDeleteQueryCompiler = class SqlDeleteQueryCompiler extends SqlQueryCompiler {
|
|
338
331
|
constructor(_container, builder) {
|
|
339
332
|
super(builder, _container);
|
|
@@ -353,23 +346,23 @@ let SqlDeleteQueryCompiler = class SqlDeleteQueryCompiler extends SqlQueryCompil
|
|
|
353
346
|
};
|
|
354
347
|
}
|
|
355
348
|
limit() {
|
|
356
|
-
const compiler = this._container.resolve(
|
|
349
|
+
const compiler = this._container.resolve(LimitQueryCompiler, [this._builder]);
|
|
357
350
|
return compiler.compile();
|
|
358
351
|
}
|
|
359
352
|
from() {
|
|
360
|
-
return `DELETE FROM ${this._container.resolve(
|
|
353
|
+
return `DELETE FROM ${this._container.resolve(TableAliasCompiler).compile(this._builder)}`;
|
|
361
354
|
}
|
|
362
355
|
};
|
|
363
356
|
__decorate([
|
|
364
|
-
|
|
357
|
+
use(SqlWhereCompiler, TableAliasCompiler),
|
|
365
358
|
__metadata("design:type", Object)
|
|
366
359
|
], SqlDeleteQueryCompiler.prototype, "this", void 0);
|
|
367
360
|
SqlDeleteQueryCompiler = __decorate([
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
__metadata("design:paramtypes", [Object,
|
|
361
|
+
NewInstance(),
|
|
362
|
+
Inject(Container),
|
|
363
|
+
__metadata("design:paramtypes", [Object, DeleteQueryBuilder])
|
|
371
364
|
], SqlDeleteQueryCompiler);
|
|
372
|
-
|
|
365
|
+
export { SqlDeleteQueryCompiler };
|
|
373
366
|
let SqlOnDuplicateQueryCompiler = class SqlOnDuplicateQueryCompiler {
|
|
374
367
|
constructor(builder) {
|
|
375
368
|
this._builder = builder;
|
|
@@ -378,7 +371,7 @@ let SqlOnDuplicateQueryCompiler = class SqlOnDuplicateQueryCompiler {
|
|
|
378
371
|
const columns = this._builder
|
|
379
372
|
.getColumnsToUpdate()
|
|
380
373
|
.map((c) => {
|
|
381
|
-
if (
|
|
374
|
+
if (_.isString(c)) {
|
|
382
375
|
return `\`${c}\` = ?`;
|
|
383
376
|
}
|
|
384
377
|
else {
|
|
@@ -391,7 +384,7 @@ let SqlOnDuplicateQueryCompiler = class SqlOnDuplicateQueryCompiler {
|
|
|
391
384
|
.getColumns()
|
|
392
385
|
.map((c) => c.Column);
|
|
393
386
|
const bindings = this._builder.getColumnsToUpdate().map((c) => {
|
|
394
|
-
if (
|
|
387
|
+
if (_.isString(c)) {
|
|
395
388
|
return this._builder.getParent().Values[0][valueMap.indexOf(c)];
|
|
396
389
|
}
|
|
397
390
|
else {
|
|
@@ -405,11 +398,11 @@ let SqlOnDuplicateQueryCompiler = class SqlOnDuplicateQueryCompiler {
|
|
|
405
398
|
}
|
|
406
399
|
};
|
|
407
400
|
SqlOnDuplicateQueryCompiler = __decorate([
|
|
408
|
-
|
|
409
|
-
__metadata("design:paramtypes", [
|
|
401
|
+
NewInstance(),
|
|
402
|
+
__metadata("design:paramtypes", [OnDuplicateQueryBuilder])
|
|
410
403
|
], SqlOnDuplicateQueryCompiler);
|
|
411
|
-
|
|
412
|
-
let SqlIndexQueryCompiler = class SqlIndexQueryCompiler extends
|
|
404
|
+
export { SqlOnDuplicateQueryCompiler };
|
|
405
|
+
let SqlIndexQueryCompiler = class SqlIndexQueryCompiler extends IndexQueryCompiler {
|
|
413
406
|
constructor(builder) {
|
|
414
407
|
super();
|
|
415
408
|
this._builder = builder;
|
|
@@ -422,10 +415,10 @@ let SqlIndexQueryCompiler = class SqlIndexQueryCompiler extends orm_1.IndexQuery
|
|
|
422
415
|
}
|
|
423
416
|
};
|
|
424
417
|
SqlIndexQueryCompiler = __decorate([
|
|
425
|
-
|
|
426
|
-
__metadata("design:paramtypes", [
|
|
418
|
+
NewInstance(),
|
|
419
|
+
__metadata("design:paramtypes", [IndexQueryBuilder])
|
|
427
420
|
], SqlIndexQueryCompiler);
|
|
428
|
-
|
|
421
|
+
export { SqlIndexQueryCompiler };
|
|
429
422
|
let SqlInsertQueryCompiler = class SqlInsertQueryCompiler extends SqlQueryCompiler {
|
|
430
423
|
constructor(_container, builder) {
|
|
431
424
|
super(builder, _container);
|
|
@@ -442,7 +435,7 @@ let SqlInsertQueryCompiler = class SqlInsertQueryCompiler extends SqlQueryCompil
|
|
|
442
435
|
}
|
|
443
436
|
upsort() {
|
|
444
437
|
if (this._builder.Update) {
|
|
445
|
-
return this._container.resolve(
|
|
438
|
+
return this._container.resolve(OnDuplicateQueryCompiler, [this._builder.DuplicateQueryBuilder]).compile();
|
|
446
439
|
}
|
|
447
440
|
return {
|
|
448
441
|
bindings: [],
|
|
@@ -451,7 +444,7 @@ let SqlInsertQueryCompiler = class SqlInsertQueryCompiler extends SqlQueryCompil
|
|
|
451
444
|
}
|
|
452
445
|
values() {
|
|
453
446
|
if (this._builder.Values.length === 0) {
|
|
454
|
-
throw new
|
|
447
|
+
throw new InvalidArgument('values count invalid');
|
|
455
448
|
}
|
|
456
449
|
const bindings = [];
|
|
457
450
|
let data = 'VALUES ';
|
|
@@ -462,7 +455,7 @@ let SqlInsertQueryCompiler = class SqlInsertQueryCompiler extends SqlQueryCompil
|
|
|
462
455
|
const descriptor = this._builder.getColumns()[i].Descriptor;
|
|
463
456
|
if (descriptor) {
|
|
464
457
|
if (!descriptor.Nullable && (v === null || v === undefined) && !descriptor.AutoIncrement) {
|
|
465
|
-
throw new
|
|
458
|
+
throw new InvalidArgument(`value column ${descriptor.Name} cannot be null`);
|
|
466
459
|
}
|
|
467
460
|
if (descriptor.AutoIncrement && descriptor.PrimaryKey)
|
|
468
461
|
return false;
|
|
@@ -499,28 +492,28 @@ let SqlInsertQueryCompiler = class SqlInsertQueryCompiler extends SqlQueryCompil
|
|
|
499
492
|
return c.Column;
|
|
500
493
|
})
|
|
501
494
|
.map((c) => {
|
|
502
|
-
return `\`${c instanceof
|
|
495
|
+
return `\`${c instanceof RawQuery ? c.Query : c}\``;
|
|
503
496
|
});
|
|
504
497
|
if (columns.length === 0) {
|
|
505
|
-
throw new
|
|
498
|
+
throw new InvalidArgument('invalid column count');
|
|
506
499
|
}
|
|
507
500
|
return `(` + columns.join(',') + ')';
|
|
508
501
|
}
|
|
509
502
|
into() {
|
|
510
|
-
return `INSERT${this._builder.Ignore ? ' IGNORE' : ''} INTO ${this._container.resolve(
|
|
503
|
+
return `INSERT${this._builder.Ignore ? ' IGNORE' : ''} INTO ${this._container.resolve(TableAliasCompiler).compile(this._builder)}`;
|
|
511
504
|
}
|
|
512
505
|
};
|
|
513
506
|
__decorate([
|
|
514
|
-
|
|
507
|
+
use(TableAliasCompiler),
|
|
515
508
|
__metadata("design:type", Object)
|
|
516
509
|
], SqlInsertQueryCompiler.prototype, "this", void 0);
|
|
517
510
|
SqlInsertQueryCompiler = __decorate([
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
__metadata("design:paramtypes", [Object,
|
|
511
|
+
NewInstance(),
|
|
512
|
+
Inject(Container),
|
|
513
|
+
__metadata("design:paramtypes", [Object, InsertQueryBuilder])
|
|
521
514
|
], SqlInsertQueryCompiler);
|
|
522
|
-
|
|
523
|
-
let SqlDropTableQueryCompiler = class SqlDropTableQueryCompiler extends
|
|
515
|
+
export { SqlInsertQueryCompiler };
|
|
516
|
+
let SqlDropTableQueryCompiler = class SqlDropTableQueryCompiler extends DropTableCompiler {
|
|
524
517
|
constructor(container, builder) {
|
|
525
518
|
super();
|
|
526
519
|
this.container = container;
|
|
@@ -528,7 +521,7 @@ let SqlDropTableQueryCompiler = class SqlDropTableQueryCompiler extends orm_1.Dr
|
|
|
528
521
|
}
|
|
529
522
|
compile() {
|
|
530
523
|
const exists = this.builder.Exists ? ' IF EXISTS' : '';
|
|
531
|
-
const exprr = `DROP TABLE${exists} ${this.container.resolve(
|
|
524
|
+
const exprr = `DROP TABLE${exists} ${this.container.resolve(TableAliasCompiler).compile(this.builder)}`;
|
|
532
525
|
return {
|
|
533
526
|
bindings: [],
|
|
534
527
|
expression: exprr,
|
|
@@ -536,12 +529,12 @@ let SqlDropTableQueryCompiler = class SqlDropTableQueryCompiler extends orm_1.Dr
|
|
|
536
529
|
}
|
|
537
530
|
};
|
|
538
531
|
SqlDropTableQueryCompiler = __decorate([
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
__metadata("design:paramtypes", [
|
|
532
|
+
NewInstance(),
|
|
533
|
+
Inject(Container),
|
|
534
|
+
__metadata("design:paramtypes", [Container, DropTableQueryBuilder])
|
|
542
535
|
], SqlDropTableQueryCompiler);
|
|
543
|
-
|
|
544
|
-
let SqlAlterTableQueryCompiler = class SqlAlterTableQueryCompiler extends
|
|
536
|
+
export { SqlDropTableQueryCompiler };
|
|
537
|
+
let SqlAlterTableQueryCompiler = class SqlAlterTableQueryCompiler extends AlterTableQueryCompiler {
|
|
545
538
|
constructor(container, builder) {
|
|
546
539
|
super();
|
|
547
540
|
this.container = container;
|
|
@@ -561,12 +554,12 @@ let SqlAlterTableQueryCompiler = class SqlAlterTableQueryCompiler extends orm_1.
|
|
|
561
554
|
if (this.builder.NewTableName) {
|
|
562
555
|
_outputs.push({
|
|
563
556
|
bindings: [],
|
|
564
|
-
expression: `${_table} RENAME TO ${this.container.resolve(
|
|
557
|
+
expression: `${_table} RENAME TO ${this.container.resolve(TableAliasCompiler).compile(this.builder, this.builder.NewTableName)}`,
|
|
565
558
|
});
|
|
566
559
|
}
|
|
567
560
|
if (this.builder.Columns.length !== 0) {
|
|
568
561
|
_outputs = _outputs.concat(this.builder.Columns.map((c) => {
|
|
569
|
-
const compiler = this.container.resolve(
|
|
562
|
+
const compiler = this.container.resolve(AlterColumnQueryCompiler, [c]).compile();
|
|
570
563
|
return {
|
|
571
564
|
bindings: compiler.bindings,
|
|
572
565
|
expression: `${_table} ${compiler.expression}`,
|
|
@@ -576,23 +569,23 @@ let SqlAlterTableQueryCompiler = class SqlAlterTableQueryCompiler extends orm_1.
|
|
|
576
569
|
return _outputs;
|
|
577
570
|
}
|
|
578
571
|
_table() {
|
|
579
|
-
return `ALTER TABLE ${this.container.resolve(
|
|
572
|
+
return `ALTER TABLE ${this.container.resolve(TableAliasCompiler).compile(this.builder)}`;
|
|
580
573
|
}
|
|
581
574
|
};
|
|
582
575
|
SqlAlterTableQueryCompiler = __decorate([
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
__metadata("design:paramtypes", [
|
|
576
|
+
NewInstance(),
|
|
577
|
+
Inject(Container),
|
|
578
|
+
__metadata("design:paramtypes", [Container, AlterTableQueryBuilder])
|
|
586
579
|
], SqlAlterTableQueryCompiler);
|
|
587
|
-
|
|
588
|
-
let SqlTableCloneQueryCompiler = class SqlTableCloneQueryCompiler extends
|
|
580
|
+
export { SqlAlterTableQueryCompiler };
|
|
581
|
+
let SqlTableCloneQueryCompiler = class SqlTableCloneQueryCompiler extends TableCloneQueryCompiler {
|
|
589
582
|
constructor(container, builder) {
|
|
590
583
|
super();
|
|
591
584
|
this.container = container;
|
|
592
585
|
this.builder = builder;
|
|
593
586
|
}
|
|
594
587
|
compile() {
|
|
595
|
-
const _tblName = this.container.resolve(
|
|
588
|
+
const _tblName = this.container.resolve(TableAliasCompiler).compile(this.builder, this.builder.CloneSource);
|
|
596
589
|
const _table = this._table();
|
|
597
590
|
const out1 = {
|
|
598
591
|
bindings: [],
|
|
@@ -618,20 +611,20 @@ let SqlTableCloneQueryCompiler = class SqlTableCloneQueryCompiler extends orm_1.
|
|
|
618
611
|
return [out1];
|
|
619
612
|
}
|
|
620
613
|
_table() {
|
|
621
|
-
return `CREATE${this.builder.Temporary ? ' TEMPORARY ' : ' '}TABLE ${this.container.resolve(
|
|
614
|
+
return `CREATE${this.builder.Temporary ? ' TEMPORARY ' : ' '}TABLE ${this.container.resolve(TableAliasCompiler).compile(this.builder)}`;
|
|
622
615
|
}
|
|
623
616
|
};
|
|
624
617
|
__decorate([
|
|
625
|
-
|
|
618
|
+
use(TableAliasCompiler),
|
|
626
619
|
__metadata("design:type", Object)
|
|
627
620
|
], SqlTableCloneQueryCompiler.prototype, "this", void 0);
|
|
628
621
|
SqlTableCloneQueryCompiler = __decorate([
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
__metadata("design:paramtypes", [
|
|
622
|
+
NewInstance(),
|
|
623
|
+
Inject(Container),
|
|
624
|
+
__metadata("design:paramtypes", [Container, CloneTableQueryBuilder])
|
|
632
625
|
], SqlTableCloneQueryCompiler);
|
|
633
|
-
|
|
634
|
-
class SqlTruncateTableQueryCompiler extends
|
|
626
|
+
export { SqlTableCloneQueryCompiler };
|
|
627
|
+
export class SqlTruncateTableQueryCompiler extends TableQueryCompiler {
|
|
635
628
|
constructor(container, builder) {
|
|
636
629
|
super();
|
|
637
630
|
this.container = container;
|
|
@@ -640,19 +633,18 @@ class SqlTruncateTableQueryCompiler extends orm_1.TableQueryCompiler {
|
|
|
640
633
|
compile() {
|
|
641
634
|
return {
|
|
642
635
|
bindings: [],
|
|
643
|
-
expression: `TRUNCATE TABLE ${this.container.resolve(
|
|
636
|
+
expression: `TRUNCATE TABLE ${this.container.resolve(TableAliasCompiler).compile(this.builder)}`,
|
|
644
637
|
};
|
|
645
638
|
}
|
|
646
639
|
}
|
|
647
|
-
|
|
648
|
-
let SqlTableHistoryQueryCompiler = class SqlTableHistoryQueryCompiler extends orm_1.TableHistoryQueryCompiler {
|
|
640
|
+
let SqlTableHistoryQueryCompiler = class SqlTableHistoryQueryCompiler extends TableHistoryQueryCompiler {
|
|
649
641
|
constructor(container, builder) {
|
|
650
642
|
super();
|
|
651
643
|
this.container = container;
|
|
652
644
|
this.builder = builder;
|
|
653
645
|
}
|
|
654
646
|
compile() {
|
|
655
|
-
const tblAliasCompiler = this.container.resolve(
|
|
647
|
+
const tblAliasCompiler = this.container.resolve(TableAliasCompiler);
|
|
656
648
|
const hTtblName = tblAliasCompiler.compile(this.builder, `${this.builder.Table}__history`);
|
|
657
649
|
const tblName = tblAliasCompiler.compile(this.builder, `${this.builder.Table}`);
|
|
658
650
|
const hTriggerName = `${this.builder.Table}__history`;
|
|
@@ -744,12 +736,12 @@ let SqlTableHistoryQueryCompiler = class SqlTableHistoryQueryCompiler extends or
|
|
|
744
736
|
}
|
|
745
737
|
};
|
|
746
738
|
SqlTableHistoryQueryCompiler = __decorate([
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
__metadata("design:paramtypes", [
|
|
739
|
+
NewInstance(),
|
|
740
|
+
Inject(Container),
|
|
741
|
+
__metadata("design:paramtypes", [Container, TableQueryBuilder])
|
|
750
742
|
], SqlTableHistoryQueryCompiler);
|
|
751
|
-
|
|
752
|
-
let SqlTableQueryCompiler = class SqlTableQueryCompiler extends
|
|
743
|
+
export { SqlTableHistoryQueryCompiler };
|
|
744
|
+
let SqlTableQueryCompiler = class SqlTableQueryCompiler extends TableQueryCompiler {
|
|
753
745
|
constructor(container, builder) {
|
|
754
746
|
super();
|
|
755
747
|
this.container = container;
|
|
@@ -765,7 +757,7 @@ let SqlTableQueryCompiler = class SqlTableQueryCompiler extends orm_1.TableQuery
|
|
|
765
757
|
expression: `${_table} (${_columns} ${_primaryKey ? ',' + _primaryKey : ''} ${_keys ? ',' + _keys : ''})`,
|
|
766
758
|
};
|
|
767
759
|
if (this.builder.TrackHistory) {
|
|
768
|
-
const hCompiler = this.container.resolve(
|
|
760
|
+
const hCompiler = this.container.resolve(TableHistoryQueryCompiler, [this.builder]);
|
|
769
761
|
return [createOutput, ...hCompiler.compile()];
|
|
770
762
|
}
|
|
771
763
|
else {
|
|
@@ -774,33 +766,33 @@ let SqlTableQueryCompiler = class SqlTableQueryCompiler extends orm_1.TableQuery
|
|
|
774
766
|
}
|
|
775
767
|
_columns() {
|
|
776
768
|
return this.builder.Columns.map((c) => {
|
|
777
|
-
return this.container.resolve(
|
|
769
|
+
return this.container.resolve(ColumnQueryCompiler, [c]).compile().expression;
|
|
778
770
|
}).join(',');
|
|
779
771
|
}
|
|
780
772
|
_foreignKeys() {
|
|
781
773
|
return this.builder.ForeignKeys.map((f) => {
|
|
782
|
-
return this.container.resolve(
|
|
774
|
+
return this.container.resolve(ForeignKeyQueryCompiler, [f]).compile().expression;
|
|
783
775
|
}).join(',');
|
|
784
776
|
}
|
|
785
777
|
_primaryKeys() {
|
|
786
778
|
const _keys = this.builder.Columns.filter((x) => x.PrimaryKey)
|
|
787
779
|
.map((c) => `\`${c.Name}\``)
|
|
788
780
|
.join(',');
|
|
789
|
-
if (!
|
|
781
|
+
if (!_.isEmpty(_keys)) {
|
|
790
782
|
return `PRIMARY KEY (${_keys})`;
|
|
791
783
|
}
|
|
792
784
|
return '';
|
|
793
785
|
}
|
|
794
786
|
_table() {
|
|
795
|
-
return `CREATE${this.builder.Temporary ? ' TEMPORARY ' : ' '}TABLE ${this.builder.CheckExists ? 'IF NOT EXISTS ' : ''}${this.container.resolve(
|
|
787
|
+
return `CREATE${this.builder.Temporary ? ' TEMPORARY ' : ' '}TABLE ${this.builder.CheckExists ? 'IF NOT EXISTS ' : ''}${this.container.resolve(TableAliasCompiler).compile(this.builder)}`;
|
|
796
788
|
}
|
|
797
789
|
};
|
|
798
790
|
SqlTableQueryCompiler = __decorate([
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
__metadata("design:paramtypes", [
|
|
791
|
+
NewInstance(),
|
|
792
|
+
Inject(Container),
|
|
793
|
+
__metadata("design:paramtypes", [Container, TableQueryBuilder])
|
|
802
794
|
], SqlTableQueryCompiler);
|
|
803
|
-
|
|
795
|
+
export { SqlTableQueryCompiler };
|
|
804
796
|
let SqlColumnQueryCompiler = class SqlColumnQueryCompiler {
|
|
805
797
|
constructor(builder) {
|
|
806
798
|
this.builder = builder;
|
|
@@ -816,7 +808,7 @@ let SqlColumnQueryCompiler = class SqlColumnQueryCompiler {
|
|
|
816
808
|
double: (builder) => this._statementsMappings.float(builder),
|
|
817
809
|
decimal: (builder) => this._statementsMappings.float(builder),
|
|
818
810
|
enum: (builder) => `${builder.Type.toUpperCase()}(${builder.Args[0].map((a) => `'${a}'`).join(',')})`,
|
|
819
|
-
binary: (builder) =>
|
|
811
|
+
binary: (builder) => `BINARY(${builder.Args[0] ?? 255}`,
|
|
820
812
|
smallint: (builder) => builder.Type.toUpperCase(),
|
|
821
813
|
tinyint: (builder) => builder.Type.toUpperCase(),
|
|
822
814
|
mediumint: (builder) => builder.Type.toUpperCase(),
|
|
@@ -878,38 +870,38 @@ let SqlColumnQueryCompiler = class SqlColumnQueryCompiler {
|
|
|
878
870
|
}
|
|
879
871
|
return {
|
|
880
872
|
bindings: [],
|
|
881
|
-
expression: _stmt.filter((x) => !
|
|
873
|
+
expression: _stmt.filter((x) => !_.isEmpty(x)).join(' '),
|
|
882
874
|
};
|
|
883
875
|
}
|
|
884
876
|
_defaultCompiler() {
|
|
885
877
|
let _stmt = '';
|
|
886
|
-
if (
|
|
878
|
+
if (_.isNil(this.builder.Default) || (_.isNil(this.builder.Default.Query) && _.isNil(this.builder.Default.Value))) {
|
|
887
879
|
return _stmt;
|
|
888
880
|
}
|
|
889
|
-
if (
|
|
881
|
+
if (_.isString(this.builder.Default.Value)) {
|
|
890
882
|
_stmt = `DEFAULT '${this.builder.Default.Value.trim()}'`;
|
|
891
883
|
}
|
|
892
|
-
else if (
|
|
884
|
+
else if (_.isNumber(this.builder.Default.Value)) {
|
|
893
885
|
_stmt = `DEFAULT ${this.builder.Default.Value}`;
|
|
894
886
|
}
|
|
895
|
-
else if (this.builder.Default.Query instanceof
|
|
887
|
+
else if (this.builder.Default.Query instanceof RawQuery) {
|
|
896
888
|
_stmt = `DEFAULT ${this.builder.Default.Query.Query}`;
|
|
897
889
|
}
|
|
898
890
|
return _stmt;
|
|
899
891
|
}
|
|
900
892
|
};
|
|
901
893
|
SqlColumnQueryCompiler = __decorate([
|
|
902
|
-
|
|
903
|
-
__metadata("design:paramtypes", [
|
|
894
|
+
NewInstance(),
|
|
895
|
+
__metadata("design:paramtypes", [ColumnQueryBuilder])
|
|
904
896
|
], SqlColumnQueryCompiler);
|
|
905
|
-
|
|
897
|
+
export { SqlColumnQueryCompiler };
|
|
906
898
|
let SqlAlterColumnQueryCompiler = class SqlAlterColumnQueryCompiler extends SqlColumnQueryCompiler {
|
|
907
899
|
constructor(builder) {
|
|
908
900
|
super(builder);
|
|
909
901
|
}
|
|
910
902
|
compile() {
|
|
911
903
|
const builder = this.builder;
|
|
912
|
-
if (builder.AlterType ===
|
|
904
|
+
if (builder.AlterType === ColumnAlterationType.Rename) {
|
|
913
905
|
const bld = this.builder;
|
|
914
906
|
return {
|
|
915
907
|
bindings: [],
|
|
@@ -917,13 +909,13 @@ let SqlAlterColumnQueryCompiler = class SqlAlterColumnQueryCompiler extends SqlC
|
|
|
917
909
|
};
|
|
918
910
|
}
|
|
919
911
|
const cDefinition = super.compile();
|
|
920
|
-
if (builder.AlterType ===
|
|
912
|
+
if (builder.AlterType === ColumnAlterationType.Add) {
|
|
921
913
|
return {
|
|
922
914
|
bindings: cDefinition.bindings,
|
|
923
915
|
expression: `ADD ${cDefinition.expression} ${builder.AfterColumn ? `AFTER \`${builder.AfterColumn}\`` : ''}`,
|
|
924
916
|
};
|
|
925
917
|
}
|
|
926
|
-
if (builder.AlterType ===
|
|
918
|
+
if (builder.AlterType === ColumnAlterationType.Modify) {
|
|
927
919
|
return {
|
|
928
920
|
bindings: cDefinition.bindings,
|
|
929
921
|
expression: `MODIFY ${cDefinition.expression}`,
|
|
@@ -932,10 +924,10 @@ let SqlAlterColumnQueryCompiler = class SqlAlterColumnQueryCompiler extends SqlC
|
|
|
932
924
|
}
|
|
933
925
|
};
|
|
934
926
|
SqlAlterColumnQueryCompiler = __decorate([
|
|
935
|
-
|
|
936
|
-
__metadata("design:paramtypes", [
|
|
927
|
+
NewInstance(),
|
|
928
|
+
__metadata("design:paramtypes", [AlterColumnQueryBuilder])
|
|
937
929
|
], SqlAlterColumnQueryCompiler);
|
|
938
|
-
|
|
930
|
+
export { SqlAlterColumnQueryCompiler };
|
|
939
931
|
let SqlEventQueryCompiler = class SqlEventQueryCompiler extends SqlQueryCompiler {
|
|
940
932
|
constructor(container, builder) {
|
|
941
933
|
super(builder, container);
|
|
@@ -1003,11 +995,11 @@ let SqlEventQueryCompiler = class SqlEventQueryCompiler extends SqlQueryCompiler
|
|
|
1003
995
|
}
|
|
1004
996
|
};
|
|
1005
997
|
SqlEventQueryCompiler = __decorate([
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
__metadata("design:paramtypes", [Object,
|
|
998
|
+
NewInstance(),
|
|
999
|
+
Inject(Container),
|
|
1000
|
+
__metadata("design:paramtypes", [Object, EventQueryBuilder])
|
|
1009
1001
|
], SqlEventQueryCompiler);
|
|
1010
|
-
|
|
1002
|
+
export { SqlEventQueryCompiler };
|
|
1011
1003
|
let SqlDropEventQueryCompiler = class SqlDropEventQueryCompiler extends SqlQueryCompiler {
|
|
1012
1004
|
constructor(container, builder) {
|
|
1013
1005
|
super(builder, container);
|
|
@@ -1020,9 +1012,9 @@ let SqlDropEventQueryCompiler = class SqlDropEventQueryCompiler extends SqlQuery
|
|
|
1020
1012
|
}
|
|
1021
1013
|
};
|
|
1022
1014
|
SqlDropEventQueryCompiler = __decorate([
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
__metadata("design:paramtypes", [Object,
|
|
1015
|
+
NewInstance(),
|
|
1016
|
+
Inject(Container),
|
|
1017
|
+
__metadata("design:paramtypes", [Object, DropEventQueryBuilder])
|
|
1026
1018
|
], SqlDropEventQueryCompiler);
|
|
1027
|
-
|
|
1019
|
+
export { SqlDropEventQueryCompiler };
|
|
1028
1020
|
//# sourceMappingURL=compilers.js.map
|