@riao/dbal 3.8.0 → 3.8.1
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/CHANGELOG.md +3 -3
- package/LICENSE.md +20 -20
- package/README.md +148 -148
- package/builder/builder.d.ts +7 -7
- package/builder/builder.js +19 -19
- package/builder/index.d.ts +2 -2
- package/builder/index.js +7 -7
- package/builder/sql-builder.d.ts +53 -53
- package/builder/sql-builder.js +157 -157
- package/builder/statement-builder.d.ts +12 -12
- package/builder/statement-builder.js +32 -32
- package/column/column-options.d.ts +156 -156
- package/column/column-options.js +2 -2
- package/column/column-type.d.ts +18 -18
- package/column/column-type.js +27 -27
- package/column/column-values.d.ts +34 -34
- package/column/column-values.js +2 -2
- package/column/index.d.ts +3 -3
- package/column/index.js +19 -19
- package/column-pack/date-time/create-timestamp-column.d.ts +2 -2
- package/column-pack/date-time/create-timestamp-column.js +10 -10
- package/column-pack/date-time/index.d.ts +2 -2
- package/column-pack/date-time/index.js +7 -7
- package/column-pack/date-time/update-timestamp-column.d.ts +2 -2
- package/column-pack/date-time/update-timestamp-column.js +14 -14
- package/column-pack/index.d.ts +6 -6
- package/column-pack/index.js +22 -22
- package/column-pack/keys/big-int-key-column.d.ts +2 -2
- package/column-pack/keys/big-int-key-column.js +10 -10
- package/column-pack/keys/index.d.ts +3 -3
- package/column-pack/keys/index.js +9 -9
- package/column-pack/keys/int-key-column.d.ts +2 -2
- package/column-pack/keys/int-key-column.js +10 -10
- package/column-pack/keys/uuid-key-column.d.ts +2 -2
- package/column-pack/keys/uuid-key-column.js +11 -11
- package/column-pack/person/date-of-birth-column.d.ts +2 -2
- package/column-pack/person/date-of-birth-column.js +8 -8
- package/column-pack/person/first-name-column.d.ts +2 -2
- package/column-pack/person/first-name-column.js +9 -9
- package/column-pack/person/index.d.ts +3 -3
- package/column-pack/person/index.js +9 -9
- package/column-pack/person/last-name-column.d.ts +2 -2
- package/column-pack/person/last-name-column.js +9 -9
- package/column-pack/resource/content-column.d.ts +2 -2
- package/column-pack/resource/content-column.js +9 -9
- package/column-pack/resource/description-column.d.ts +2 -2
- package/column-pack/resource/description-column.js +9 -9
- package/column-pack/resource/index.d.ts +6 -6
- package/column-pack/resource/index.js +15 -15
- package/column-pack/resource/is-active-column.d.ts +2 -2
- package/column-pack/resource/is-active-column.js +9 -9
- package/column-pack/resource/name-column.d.ts +2 -2
- package/column-pack/resource/name-column.js +10 -10
- package/column-pack/resource/path-column.d.ts +2 -2
- package/column-pack/resource/path-column.js +11 -11
- package/column-pack/resource/title-column.d.ts +2 -2
- package/column-pack/resource/title-column.js +10 -10
- package/column-pack/system/filename-column.d.ts +2 -2
- package/column-pack/system/filename-column.js +9 -9
- package/column-pack/system/filepath-column.d.ts +2 -2
- package/column-pack/system/filepath-column.js +9 -9
- package/column-pack/system/index.d.ts +4 -4
- package/column-pack/system/index.js +11 -11
- package/column-pack/system/ip-address-column.d.ts +2 -2
- package/column-pack/system/ip-address-column.js +9 -9
- package/column-pack/system/url-column.d.ts +3 -3
- package/column-pack/system/url-column.js +13 -13
- package/column-pack/user/email-column.d.ts +2 -2
- package/column-pack/user/email-column.js +11 -11
- package/column-pack/user/index.d.ts +4 -4
- package/column-pack/user/index.js +11 -11
- package/column-pack/user/password-column.d.ts +2 -2
- package/column-pack/user/password-column.js +10 -10
- package/column-pack/user/temp-email-column.d.ts +2 -2
- package/column-pack/user/temp-email-column.js +5 -5
- package/column-pack/user/username-column.d.ts +2 -2
- package/column-pack/user/username-column.js +11 -11
- package/comparison/comparison-aliases.d.ts +10 -10
- package/comparison/comparison-aliases.js +40 -40
- package/comparison/comparison-token.d.ts +17 -17
- package/comparison/comparison-token.js +15 -15
- package/comparison/comparison.d.ts +13 -13
- package/comparison/comparison.js +71 -71
- package/comparison/index.d.ts +4 -4
- package/comparison/index.js +24 -24
- package/comparison/is-comparison-token.d.ts +2 -2
- package/comparison/is-comparison-token.js +8 -8
- package/config/configure-db.d.ts +14 -14
- package/config/configure-db.js +18 -18
- package/config/database-env.d.ts +16 -16
- package/config/database-env.js +14 -14
- package/config/index.d.ts +2 -2
- package/config/index.js +7 -7
- package/database/connection-options.d.ts +7 -7
- package/database/connection-options.js +2 -2
- package/database/database.d.ts +204 -204
- package/database/database.js +330 -330
- package/database/driver-query.d.ts +10 -10
- package/database/driver-query.js +2 -2
- package/database/driver.d.ts +12 -12
- package/database/driver.js +47 -47
- package/database/get-database-path.d.ts +6 -6
- package/database/get-database-path.js +12 -12
- package/database/index.d.ts +7 -7
- package/database/index.js +26 -26
- package/database/load-database.d.ts +9 -9
- package/database/load-database.js +36 -36
- package/database/transaction.d.ts +8 -8
- package/database/transaction.js +2 -2
- package/ddl/alter-table.d.ts +26 -26
- package/ddl/alter-table.js +2 -2
- package/ddl/create-database.d.ts +3 -3
- package/ddl/create-database.js +2 -2
- package/ddl/create-index.d.ts +5 -5
- package/ddl/create-index.js +2 -2
- package/ddl/create-table.d.ts +8 -8
- package/ddl/create-table.js +2 -2
- package/ddl/create-user.d.ts +4 -4
- package/ddl/create-user.js +2 -2
- package/ddl/ddl-builder.d.ts +96 -96
- package/ddl/ddl-builder.js +565 -565
- package/ddl/ddl-repository.d.ts +135 -135
- package/ddl/ddl-repository.js +228 -228
- package/ddl/drop-database.d.ts +4 -4
- package/ddl/drop-database.js +2 -2
- package/ddl/drop-table.d.ts +4 -4
- package/ddl/drop-table.js +2 -2
- package/ddl/drop-user.d.ts +4 -4
- package/ddl/drop-user.js +2 -2
- package/ddl/foreign-key-constraint.d.ts +19 -19
- package/ddl/foreign-key-constraint.js +2 -2
- package/ddl/grant.d.ts +12 -12
- package/ddl/grant.js +2 -2
- package/ddl/index.d.ts +13 -13
- package/ddl/index.js +23 -23
- package/ddl/truncate.d.ts +3 -3
- package/ddl/truncate.js +2 -2
- package/dml/case-expression.d.ts +16 -16
- package/dml/case-expression.js +11 -11
- package/dml/delete.d.ts +8 -8
- package/dml/delete.js +2 -2
- package/dml/from.d.ts +4 -4
- package/dml/from.js +2 -2
- package/dml/group-by.d.ts +4 -4
- package/dml/group-by.js +2 -2
- package/dml/index.d.ts +11 -11
- package/dml/index.js +30 -30
- package/dml/insert.d.ts +14 -14
- package/dml/insert.js +2 -2
- package/dml/join.d.ts +7 -7
- package/dml/join.js +2 -2
- package/dml/order-by.d.ts +2 -2
- package/dml/order-by.js +2 -2
- package/dml/query-builder.d.ts +106 -106
- package/dml/query-builder.js +797 -793
- package/dml/query-builder.js.map +1 -1
- package/dml/query-repository.d.ts +84 -84
- package/dml/query-repository.js +239 -225
- package/dml/query-repository.js.map +1 -1
- package/dml/select.d.ts +29 -29
- package/dml/select.js +2 -2
- package/dml/set-options.d.ts +5 -5
- package/dml/set-options.js +2 -2
- package/dml/subquery.d.ts +5 -5
- package/dml/subquery.js +10 -10
- package/dml/update.d.ts +11 -11
- package/dml/update.js +2 -2
- package/expression/expression-token.d.ts +11 -11
- package/expression/expression-token.js +12 -12
- package/expression/expression.d.ts +6 -6
- package/expression/expression.js +2 -2
- package/expression/identifier.d.ts +7 -7
- package/expression/identifier.js +15 -15
- package/expression/index.d.ts +7 -7
- package/expression/index.js +25 -25
- package/expression/is-expression-token.d.ts +2 -2
- package/expression/is-expression-token.js +7 -7
- package/expression/key-val-expression.d.ts +7 -7
- package/expression/key-val-expression.js +2 -2
- package/expression/literal.d.ts +3 -3
- package/expression/literal.js +2 -2
- package/expression/logical.d.ts +18 -18
- package/expression/logical.js +30 -30
- package/expression/math.d.ts +17 -17
- package/expression/math.js +36 -36
- package/expression/raw.d.ts +8 -8
- package/expression/raw.js +16 -16
- package/expression/simple-expression.d.ts +8 -8
- package/expression/simple-expression.js +2 -2
- package/functions/function-aliases.d.ts +4 -4
- package/functions/function-aliases.js +12 -12
- package/functions/function-token.d.ts +29 -29
- package/functions/function-token.js +15 -15
- package/functions/functions.d.ts +19 -19
- package/functions/functions.js +94 -94
- package/functions/index.d.ts +4 -4
- package/functions/index.js +22 -22
- package/functions/is-database-function.d.ts +8 -8
- package/functions/is-database-function.js +14 -14
- package/functions/signatures/count.d.ts +14 -11
- package/functions/signatures/count.js +2 -2
- package/index.d.ts +16 -16
- package/index.js +32 -32
- package/migration/index.d.ts +3 -3
- package/migration/index.js +9 -9
- package/migration/migration-package.d.ts +14 -14
- package/migration/migration-package.js +10 -10
- package/migration/migration-record.d.ts +10 -10
- package/migration/migration-record.js +2 -2
- package/migration/migration-runner.d.ts +33 -33
- package/migration/migration-runner.js +180 -180
- package/migration/migration.d.ts +12 -12
- package/migration/migration.js +27 -27
- package/migration/migrations/001-create-migration-table.d.ts +8 -8
- package/migration/migrations/001-create-migration-table.js +54 -54
- package/migration/migrations/002-add-migration-package-column.d.ts +9 -9
- package/migration/migrations/002-add-migration-package-column.js +44 -44
- package/package.json +1 -1
- package/record/index.d.ts +1 -1
- package/record/index.js +17 -17
- package/record/record.d.ts +2 -2
- package/record/record.js +2 -2
- package/repository/index.d.ts +2 -2
- package/repository/index.js +5 -5
- package/repository/repository-options.d.ts +6 -6
- package/repository/repository-options.js +2 -2
- package/repository/repository.d.ts +29 -29
- package/repository/repository.js +68 -68
- package/schema/index.d.ts +3 -3
- package/schema/index.js +5 -5
- package/schema/schema-query-repository.d.ts +54 -54
- package/schema/schema-query-repository.js +159 -159
- package/schema/schema-table.d.ts +9 -9
- package/schema/schema-table.js +2 -2
- package/schema/schema.d.ts +4 -4
- package/schema/schema.js +2 -2
- package/seed/auto-seed.d.ts +9 -9
- package/seed/auto-seed.js +61 -61
- package/seed/create-seed-table.d.ts +8 -8
- package/seed/create-seed-table.js +64 -64
- package/seed/index.d.ts +4 -4
- package/seed/index.js +9 -9
- package/seed/seed-record.d.ts +11 -11
- package/seed/seed-record.js +2 -2
- package/seed/seed-runner.d.ts +20 -20
- package/seed/seed-runner.js +91 -91
- package/seed/seed.d.ts +12 -12
- package/seed/seed.js +27 -27
- package/tokens/index.d.ts +1 -1
- package/tokens/index.js +5 -5
- package/triggers/index.d.ts +2 -2
- package/triggers/index.js +18 -18
- package/triggers/prebuilt/index.d.ts +1 -1
- package/triggers/prebuilt/index.js +5 -5
- package/triggers/prebuilt/update-timestamp-trigger.d.ts +16 -16
- package/triggers/prebuilt/update-timestamp-trigger.js +24 -24
- package/triggers/trigger-options.d.ts +22 -22
- package/triggers/trigger-options.js +2 -2
- package/triggers/trigger.d.ts +19 -19
- package/triggers/trigger.js +23 -23
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DatabaseFunctionKeys = void 0;
|
|
4
|
-
var DatabaseFunctionKeys;
|
|
5
|
-
(function (DatabaseFunctionKeys) {
|
|
6
|
-
DatabaseFunctionKeys[DatabaseFunctionKeys["AVERAGE"] = 0] = "AVERAGE";
|
|
7
|
-
DatabaseFunctionKeys[DatabaseFunctionKeys["COUNT"] = 1] = "COUNT";
|
|
8
|
-
DatabaseFunctionKeys[DatabaseFunctionKeys["MIN"] = 2] = "MIN";
|
|
9
|
-
DatabaseFunctionKeys[DatabaseFunctionKeys["MAX"] = 3] = "MAX";
|
|
10
|
-
DatabaseFunctionKeys[DatabaseFunctionKeys["SUM"] = 4] = "SUM";
|
|
11
|
-
DatabaseFunctionKeys[DatabaseFunctionKeys["CURRENT_TIMESTAMP"] = 5] = "CURRENT_TIMESTAMP";
|
|
12
|
-
DatabaseFunctionKeys[DatabaseFunctionKeys["DATE"] = 6] = "DATE";
|
|
13
|
-
DatabaseFunctionKeys[DatabaseFunctionKeys["YEAR"] = 7] = "YEAR";
|
|
14
|
-
DatabaseFunctionKeys[DatabaseFunctionKeys["UUID"] = 8] = "UUID";
|
|
15
|
-
})(DatabaseFunctionKeys = exports.DatabaseFunctionKeys || (exports.DatabaseFunctionKeys = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DatabaseFunctionKeys = void 0;
|
|
4
|
+
var DatabaseFunctionKeys;
|
|
5
|
+
(function (DatabaseFunctionKeys) {
|
|
6
|
+
DatabaseFunctionKeys[DatabaseFunctionKeys["AVERAGE"] = 0] = "AVERAGE";
|
|
7
|
+
DatabaseFunctionKeys[DatabaseFunctionKeys["COUNT"] = 1] = "COUNT";
|
|
8
|
+
DatabaseFunctionKeys[DatabaseFunctionKeys["MIN"] = 2] = "MIN";
|
|
9
|
+
DatabaseFunctionKeys[DatabaseFunctionKeys["MAX"] = 3] = "MAX";
|
|
10
|
+
DatabaseFunctionKeys[DatabaseFunctionKeys["SUM"] = 4] = "SUM";
|
|
11
|
+
DatabaseFunctionKeys[DatabaseFunctionKeys["CURRENT_TIMESTAMP"] = 5] = "CURRENT_TIMESTAMP";
|
|
12
|
+
DatabaseFunctionKeys[DatabaseFunctionKeys["DATE"] = 6] = "DATE";
|
|
13
|
+
DatabaseFunctionKeys[DatabaseFunctionKeys["YEAR"] = 7] = "YEAR";
|
|
14
|
+
DatabaseFunctionKeys[DatabaseFunctionKeys["UUID"] = 8] = "UUID";
|
|
15
|
+
})(DatabaseFunctionKeys = exports.DatabaseFunctionKeys || (exports.DatabaseFunctionKeys = {}));
|
|
16
16
|
//# sourceMappingURL=function-token.js.map
|
package/functions/functions.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { Expression } from '../expression';
|
|
2
|
-
import { ColumnType } from '../column';
|
|
3
|
-
import { DatabaseFunctionToken } from './function-token';
|
|
4
|
-
import { CountParams } from './signatures/count';
|
|
5
|
-
export declare class DatabaseFunctions {
|
|
6
|
-
static uuid(): DatabaseFunctionToken<ColumnType.VARCHAR>;
|
|
7
|
-
static average(expr: Expression, options?: {
|
|
8
|
-
distinct?: boolean;
|
|
9
|
-
}): DatabaseFunctionToken;
|
|
10
|
-
static count(params?: CountParams): DatabaseFunctionToken<ColumnType.BIGINT>;
|
|
11
|
-
static min(expr: Expression): DatabaseFunctionToken;
|
|
12
|
-
static max(expr: Expression): DatabaseFunctionToken;
|
|
13
|
-
static sum(expr: Expression, options?: {
|
|
14
|
-
distinct?: boolean;
|
|
15
|
-
}): DatabaseFunctionToken;
|
|
16
|
-
static currentTimestamp(): DatabaseFunctionToken<ColumnType.TIMESTAMP>;
|
|
17
|
-
static date(expr?: Expression): DatabaseFunctionToken<ColumnType.DATE>;
|
|
18
|
-
static year(expr?: Expression): DatabaseFunctionToken<ColumnType.INT>;
|
|
19
|
-
}
|
|
1
|
+
import { Expression } from '../expression';
|
|
2
|
+
import { ColumnType } from '../column';
|
|
3
|
+
import { DatabaseFunctionToken } from './function-token';
|
|
4
|
+
import { CountParams } from './signatures/count';
|
|
5
|
+
export declare class DatabaseFunctions {
|
|
6
|
+
static uuid(): DatabaseFunctionToken<ColumnType.VARCHAR>;
|
|
7
|
+
static average(expr: Expression, options?: {
|
|
8
|
+
distinct?: boolean;
|
|
9
|
+
}): DatabaseFunctionToken;
|
|
10
|
+
static count(params?: CountParams): DatabaseFunctionToken<ColumnType.BIGINT>;
|
|
11
|
+
static min(expr: Expression): DatabaseFunctionToken;
|
|
12
|
+
static max(expr: Expression): DatabaseFunctionToken;
|
|
13
|
+
static sum(expr: Expression, options?: {
|
|
14
|
+
distinct?: boolean;
|
|
15
|
+
}): DatabaseFunctionToken;
|
|
16
|
+
static currentTimestamp(): DatabaseFunctionToken<ColumnType.TIMESTAMP>;
|
|
17
|
+
static date(expr?: Expression): DatabaseFunctionToken<ColumnType.DATE>;
|
|
18
|
+
static year(expr?: Expression): DatabaseFunctionToken<ColumnType.INT>;
|
|
19
|
+
}
|
package/functions/functions.js
CHANGED
|
@@ -1,95 +1,95 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DatabaseFunctions = void 0;
|
|
4
|
-
const expression_token_1 = require("../expression/expression-token");
|
|
5
|
-
const column_1 = require("../column");
|
|
6
|
-
const function_token_1 = require("./function-token");
|
|
7
|
-
class DatabaseFunctions {
|
|
8
|
-
// ------------------------------------------------------------------------
|
|
9
|
-
// ID functions
|
|
10
|
-
// ------------------------------------------------------------------------
|
|
11
|
-
static uuid() {
|
|
12
|
-
return {
|
|
13
|
-
riao_expr: expression_token_1.ExpressionTokenKey.FUNCTION_CALL,
|
|
14
|
-
fn: function_token_1.DatabaseFunctionKeys.UUID,
|
|
15
|
-
type: column_1.ColumnType.VARCHAR,
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
// ------------------------------------------------------------------------
|
|
19
|
-
// Math functions
|
|
20
|
-
// ------------------------------------------------------------------------
|
|
21
|
-
static average(expr, options = {}) {
|
|
22
|
-
return {
|
|
23
|
-
riao_expr: expression_token_1.ExpressionTokenKey.FUNCTION_CALL,
|
|
24
|
-
fn: function_token_1.DatabaseFunctionKeys.AVERAGE,
|
|
25
|
-
type: column_1.ColumnType.BIGINT,
|
|
26
|
-
params: {
|
|
27
|
-
expr,
|
|
28
|
-
options,
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
static count(params = {}) {
|
|
33
|
-
return {
|
|
34
|
-
riao_expr: expression_token_1.ExpressionTokenKey.FUNCTION_CALL,
|
|
35
|
-
fn: function_token_1.DatabaseFunctionKeys.COUNT,
|
|
36
|
-
type: column_1.ColumnType.BIGINT,
|
|
37
|
-
params,
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
static min(expr) {
|
|
41
|
-
return {
|
|
42
|
-
riao_expr: expression_token_1.ExpressionTokenKey.FUNCTION_CALL,
|
|
43
|
-
fn: function_token_1.DatabaseFunctionKeys.MIN,
|
|
44
|
-
type: column_1.ColumnType.BIGINT,
|
|
45
|
-
params: expr,
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
static max(expr) {
|
|
49
|
-
return {
|
|
50
|
-
riao_expr: expression_token_1.ExpressionTokenKey.FUNCTION_CALL,
|
|
51
|
-
fn: function_token_1.DatabaseFunctionKeys.MAX,
|
|
52
|
-
type: column_1.ColumnType.BIGINT,
|
|
53
|
-
params: expr,
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
static sum(expr, options = {}) {
|
|
57
|
-
return {
|
|
58
|
-
riao_expr: expression_token_1.ExpressionTokenKey.FUNCTION_CALL,
|
|
59
|
-
fn: function_token_1.DatabaseFunctionKeys.SUM,
|
|
60
|
-
type: column_1.ColumnType.BIGINT,
|
|
61
|
-
params: {
|
|
62
|
-
expr,
|
|
63
|
-
options,
|
|
64
|
-
},
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
// ------------------------------------------------------------------------
|
|
68
|
-
// Date/Time functions
|
|
69
|
-
// ------------------------------------------------------------------------
|
|
70
|
-
static currentTimestamp() {
|
|
71
|
-
return {
|
|
72
|
-
riao_expr: expression_token_1.ExpressionTokenKey.FUNCTION_CALL,
|
|
73
|
-
fn: function_token_1.DatabaseFunctionKeys.CURRENT_TIMESTAMP,
|
|
74
|
-
type: column_1.ColumnType.TIMESTAMP,
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
static date(expr) {
|
|
78
|
-
return {
|
|
79
|
-
riao_expr: expression_token_1.ExpressionTokenKey.FUNCTION_CALL,
|
|
80
|
-
fn: function_token_1.DatabaseFunctionKeys.DATE,
|
|
81
|
-
type: column_1.ColumnType.DATE,
|
|
82
|
-
params: { expr },
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
static year(expr) {
|
|
86
|
-
return {
|
|
87
|
-
riao_expr: expression_token_1.ExpressionTokenKey.FUNCTION_CALL,
|
|
88
|
-
fn: function_token_1.DatabaseFunctionKeys.YEAR,
|
|
89
|
-
type: column_1.ColumnType.INT,
|
|
90
|
-
params: { expr },
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
exports.DatabaseFunctions = DatabaseFunctions;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DatabaseFunctions = void 0;
|
|
4
|
+
const expression_token_1 = require("../expression/expression-token");
|
|
5
|
+
const column_1 = require("../column");
|
|
6
|
+
const function_token_1 = require("./function-token");
|
|
7
|
+
class DatabaseFunctions {
|
|
8
|
+
// ------------------------------------------------------------------------
|
|
9
|
+
// ID functions
|
|
10
|
+
// ------------------------------------------------------------------------
|
|
11
|
+
static uuid() {
|
|
12
|
+
return {
|
|
13
|
+
riao_expr: expression_token_1.ExpressionTokenKey.FUNCTION_CALL,
|
|
14
|
+
fn: function_token_1.DatabaseFunctionKeys.UUID,
|
|
15
|
+
type: column_1.ColumnType.VARCHAR,
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
// ------------------------------------------------------------------------
|
|
19
|
+
// Math functions
|
|
20
|
+
// ------------------------------------------------------------------------
|
|
21
|
+
static average(expr, options = {}) {
|
|
22
|
+
return {
|
|
23
|
+
riao_expr: expression_token_1.ExpressionTokenKey.FUNCTION_CALL,
|
|
24
|
+
fn: function_token_1.DatabaseFunctionKeys.AVERAGE,
|
|
25
|
+
type: column_1.ColumnType.BIGINT,
|
|
26
|
+
params: {
|
|
27
|
+
expr,
|
|
28
|
+
options,
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
static count(params = {}) {
|
|
33
|
+
return {
|
|
34
|
+
riao_expr: expression_token_1.ExpressionTokenKey.FUNCTION_CALL,
|
|
35
|
+
fn: function_token_1.DatabaseFunctionKeys.COUNT,
|
|
36
|
+
type: column_1.ColumnType.BIGINT,
|
|
37
|
+
params,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
static min(expr) {
|
|
41
|
+
return {
|
|
42
|
+
riao_expr: expression_token_1.ExpressionTokenKey.FUNCTION_CALL,
|
|
43
|
+
fn: function_token_1.DatabaseFunctionKeys.MIN,
|
|
44
|
+
type: column_1.ColumnType.BIGINT,
|
|
45
|
+
params: expr,
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
static max(expr) {
|
|
49
|
+
return {
|
|
50
|
+
riao_expr: expression_token_1.ExpressionTokenKey.FUNCTION_CALL,
|
|
51
|
+
fn: function_token_1.DatabaseFunctionKeys.MAX,
|
|
52
|
+
type: column_1.ColumnType.BIGINT,
|
|
53
|
+
params: expr,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
static sum(expr, options = {}) {
|
|
57
|
+
return {
|
|
58
|
+
riao_expr: expression_token_1.ExpressionTokenKey.FUNCTION_CALL,
|
|
59
|
+
fn: function_token_1.DatabaseFunctionKeys.SUM,
|
|
60
|
+
type: column_1.ColumnType.BIGINT,
|
|
61
|
+
params: {
|
|
62
|
+
expr,
|
|
63
|
+
options,
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
// ------------------------------------------------------------------------
|
|
68
|
+
// Date/Time functions
|
|
69
|
+
// ------------------------------------------------------------------------
|
|
70
|
+
static currentTimestamp() {
|
|
71
|
+
return {
|
|
72
|
+
riao_expr: expression_token_1.ExpressionTokenKey.FUNCTION_CALL,
|
|
73
|
+
fn: function_token_1.DatabaseFunctionKeys.CURRENT_TIMESTAMP,
|
|
74
|
+
type: column_1.ColumnType.TIMESTAMP,
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
static date(expr) {
|
|
78
|
+
return {
|
|
79
|
+
riao_expr: expression_token_1.ExpressionTokenKey.FUNCTION_CALL,
|
|
80
|
+
fn: function_token_1.DatabaseFunctionKeys.DATE,
|
|
81
|
+
type: column_1.ColumnType.DATE,
|
|
82
|
+
params: { expr },
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
static year(expr) {
|
|
86
|
+
return {
|
|
87
|
+
riao_expr: expression_token_1.ExpressionTokenKey.FUNCTION_CALL,
|
|
88
|
+
fn: function_token_1.DatabaseFunctionKeys.YEAR,
|
|
89
|
+
type: column_1.ColumnType.INT,
|
|
90
|
+
params: { expr },
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
exports.DatabaseFunctions = DatabaseFunctions;
|
|
95
95
|
//# sourceMappingURL=functions.js.map
|
package/functions/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './function-aliases';
|
|
2
|
-
export { DatabaseFunctionToken } from './function-token';
|
|
3
|
-
export { DatabaseFunctions } from './functions';
|
|
4
|
-
export { isDatabaseFunction } from './is-database-function';
|
|
1
|
+
export * from './function-aliases';
|
|
2
|
+
export { DatabaseFunctionToken } from './function-token';
|
|
3
|
+
export { DatabaseFunctions } from './functions';
|
|
4
|
+
export { isDatabaseFunction } from './is-database-function';
|
package/functions/index.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.isDatabaseFunction = exports.DatabaseFunctions = void 0;
|
|
18
|
-
__exportStar(require("./function-aliases"), exports);
|
|
19
|
-
var functions_1 = require("./functions");
|
|
20
|
-
Object.defineProperty(exports, "DatabaseFunctions", { enumerable: true, get: function () { return functions_1.DatabaseFunctions; } });
|
|
21
|
-
var is_database_function_1 = require("./is-database-function");
|
|
22
|
-
Object.defineProperty(exports, "isDatabaseFunction", { enumerable: true, get: function () { return is_database_function_1.isDatabaseFunction; } });
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.isDatabaseFunction = exports.DatabaseFunctions = void 0;
|
|
18
|
+
__exportStar(require("./function-aliases"), exports);
|
|
19
|
+
var functions_1 = require("./functions");
|
|
20
|
+
Object.defineProperty(exports, "DatabaseFunctions", { enumerable: true, get: function () { return functions_1.DatabaseFunctions; } });
|
|
21
|
+
var is_database_function_1 = require("./is-database-function");
|
|
22
|
+
Object.defineProperty(exports, "isDatabaseFunction", { enumerable: true, get: function () { return is_database_function_1.isDatabaseFunction; } });
|
|
23
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ExpressionToken } from '../expression/expression-token';
|
|
2
|
-
/**
|
|
3
|
-
* Check if a value is a database function token
|
|
4
|
-
*
|
|
5
|
-
* @param token Value to check
|
|
6
|
-
* @returns Returns true if the value is a database function
|
|
7
|
-
*/
|
|
8
|
-
export declare function isDatabaseFunction(token: ExpressionToken): boolean;
|
|
1
|
+
import { ExpressionToken } from '../expression/expression-token';
|
|
2
|
+
/**
|
|
3
|
+
* Check if a value is a database function token
|
|
4
|
+
*
|
|
5
|
+
* @param token Value to check
|
|
6
|
+
* @returns Returns true if the value is a database function
|
|
7
|
+
*/
|
|
8
|
+
export declare function isDatabaseFunction(token: ExpressionToken): boolean;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isDatabaseFunction = void 0;
|
|
4
|
-
const expression_token_1 = require("../expression/expression-token");
|
|
5
|
-
/**
|
|
6
|
-
* Check if a value is a database function token
|
|
7
|
-
*
|
|
8
|
-
* @param token Value to check
|
|
9
|
-
* @returns Returns true if the value is a database function
|
|
10
|
-
*/
|
|
11
|
-
function isDatabaseFunction(token) {
|
|
12
|
-
return token.riao_expr === expression_token_1.ExpressionTokenKey.FUNCTION_CALL;
|
|
13
|
-
}
|
|
14
|
-
exports.isDatabaseFunction = isDatabaseFunction;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isDatabaseFunction = void 0;
|
|
4
|
+
const expression_token_1 = require("../expression/expression-token");
|
|
5
|
+
/**
|
|
6
|
+
* Check if a value is a database function token
|
|
7
|
+
*
|
|
8
|
+
* @param token Value to check
|
|
9
|
+
* @returns Returns true if the value is a database function
|
|
10
|
+
*/
|
|
11
|
+
function isDatabaseFunction(token) {
|
|
12
|
+
return token.riao_expr === expression_token_1.ExpressionTokenKey.FUNCTION_CALL;
|
|
13
|
+
}
|
|
14
|
+
exports.isDatabaseFunction = isDatabaseFunction;
|
|
15
15
|
//# sourceMappingURL=is-database-function.js.map
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { Expression } from '../../expression';
|
|
2
|
-
export interface CountBaseParams {
|
|
3
|
-
distinct?: boolean;
|
|
4
|
-
}
|
|
5
|
-
export interface CountExpressionParams {
|
|
6
|
-
expr?: Expression;
|
|
7
|
-
}
|
|
8
|
-
export interface CountColumnParams {
|
|
9
|
-
column?: string;
|
|
10
|
-
}
|
|
11
|
-
export
|
|
1
|
+
import { Expression } from '../../expression';
|
|
2
|
+
export interface CountBaseParams {
|
|
3
|
+
distinct?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export interface CountExpressionParams {
|
|
6
|
+
expr?: Expression;
|
|
7
|
+
}
|
|
8
|
+
export interface CountColumnParams {
|
|
9
|
+
column?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface CountColumnsParams {
|
|
12
|
+
columns?: string[];
|
|
13
|
+
}
|
|
14
|
+
export type CountParams = CountBaseParams & (CountExpressionParams | CountColumnParams | CountColumnsParams);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=count.js.map
|
package/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export * from './column';
|
|
2
|
-
export * from './column-pack';
|
|
3
|
-
export * from './comparison';
|
|
4
|
-
export * from './config';
|
|
5
|
-
export * from './database';
|
|
6
|
-
export * from './ddl';
|
|
7
|
-
export * from './dml';
|
|
8
|
-
export * from './expression';
|
|
9
|
-
export * from './functions';
|
|
10
|
-
export * from './migration';
|
|
11
|
-
export * from './record';
|
|
12
|
-
export * from './repository';
|
|
13
|
-
export * from './schema';
|
|
14
|
-
export * from './seed';
|
|
15
|
-
export * from './tokens';
|
|
16
|
-
export * from './triggers';
|
|
1
|
+
export * from './column';
|
|
2
|
+
export * from './column-pack';
|
|
3
|
+
export * from './comparison';
|
|
4
|
+
export * from './config';
|
|
5
|
+
export * from './database';
|
|
6
|
+
export * from './ddl';
|
|
7
|
+
export * from './dml';
|
|
8
|
+
export * from './expression';
|
|
9
|
+
export * from './functions';
|
|
10
|
+
export * from './migration';
|
|
11
|
+
export * from './record';
|
|
12
|
+
export * from './repository';
|
|
13
|
+
export * from './schema';
|
|
14
|
+
export * from './seed';
|
|
15
|
+
export * from './tokens';
|
|
16
|
+
export * from './triggers';
|
package/index.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./column"), exports);
|
|
18
|
-
__exportStar(require("./column-pack"), exports);
|
|
19
|
-
__exportStar(require("./comparison"), exports);
|
|
20
|
-
__exportStar(require("./config"), exports);
|
|
21
|
-
__exportStar(require("./database"), exports);
|
|
22
|
-
__exportStar(require("./ddl"), exports);
|
|
23
|
-
__exportStar(require("./dml"), exports);
|
|
24
|
-
__exportStar(require("./expression"), exports);
|
|
25
|
-
__exportStar(require("./functions"), exports);
|
|
26
|
-
__exportStar(require("./migration"), exports);
|
|
27
|
-
__exportStar(require("./record"), exports);
|
|
28
|
-
__exportStar(require("./repository"), exports);
|
|
29
|
-
__exportStar(require("./schema"), exports);
|
|
30
|
-
__exportStar(require("./seed"), exports);
|
|
31
|
-
__exportStar(require("./tokens"), exports);
|
|
32
|
-
__exportStar(require("./triggers"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./column"), exports);
|
|
18
|
+
__exportStar(require("./column-pack"), exports);
|
|
19
|
+
__exportStar(require("./comparison"), exports);
|
|
20
|
+
__exportStar(require("./config"), exports);
|
|
21
|
+
__exportStar(require("./database"), exports);
|
|
22
|
+
__exportStar(require("./ddl"), exports);
|
|
23
|
+
__exportStar(require("./dml"), exports);
|
|
24
|
+
__exportStar(require("./expression"), exports);
|
|
25
|
+
__exportStar(require("./functions"), exports);
|
|
26
|
+
__exportStar(require("./migration"), exports);
|
|
27
|
+
__exportStar(require("./record"), exports);
|
|
28
|
+
__exportStar(require("./repository"), exports);
|
|
29
|
+
__exportStar(require("./schema"), exports);
|
|
30
|
+
__exportStar(require("./seed"), exports);
|
|
31
|
+
__exportStar(require("./tokens"), exports);
|
|
32
|
+
__exportStar(require("./triggers"), exports);
|
|
33
33
|
//# sourceMappingURL=index.js.map
|
package/migration/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { MigrationRunner } from './migration-runner';
|
|
2
|
-
export { Migration } from './migration';
|
|
3
|
-
export { MigrationPackage, PackagedMigrations } from './migration-package';
|
|
1
|
+
export { MigrationRunner } from './migration-runner';
|
|
2
|
+
export { Migration } from './migration';
|
|
3
|
+
export { MigrationPackage, PackagedMigrations } from './migration-package';
|
package/migration/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MigrationPackage = exports.Migration = exports.MigrationRunner = void 0;
|
|
4
|
-
var migration_runner_1 = require("./migration-runner");
|
|
5
|
-
Object.defineProperty(exports, "MigrationRunner", { enumerable: true, get: function () { return migration_runner_1.MigrationRunner; } });
|
|
6
|
-
var migration_1 = require("./migration");
|
|
7
|
-
Object.defineProperty(exports, "Migration", { enumerable: true, get: function () { return migration_1.Migration; } });
|
|
8
|
-
var migration_package_1 = require("./migration-package");
|
|
9
|
-
Object.defineProperty(exports, "MigrationPackage", { enumerable: true, get: function () { return migration_package_1.MigrationPackage; } });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MigrationPackage = exports.Migration = exports.MigrationRunner = void 0;
|
|
4
|
+
var migration_runner_1 = require("./migration-runner");
|
|
5
|
+
Object.defineProperty(exports, "MigrationRunner", { enumerable: true, get: function () { return migration_runner_1.MigrationRunner; } });
|
|
6
|
+
var migration_1 = require("./migration");
|
|
7
|
+
Object.defineProperty(exports, "Migration", { enumerable: true, get: function () { return migration_1.Migration; } });
|
|
8
|
+
var migration_package_1 = require("./migration-package");
|
|
9
|
+
Object.defineProperty(exports, "MigrationPackage", { enumerable: true, get: function () { return migration_package_1.MigrationPackage; } });
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Migration } from './migration';
|
|
2
|
-
export type PackagedMigrations = Record<string, typeof Migration>;
|
|
3
|
-
/**
|
|
4
|
-
* Create migration packages that can bundle multiple migrations together.
|
|
5
|
-
* Useful for libraries that want to distribute migrations with their package.
|
|
6
|
-
*/
|
|
7
|
-
export declare abstract class MigrationPackage {
|
|
8
|
-
/** The name of the package, used for logging */
|
|
9
|
-
abstract name: string;
|
|
10
|
-
/** The package identifier, used for storing migration records */
|
|
11
|
-
abstract package: string;
|
|
12
|
-
/** Override to provide the migrations included in this package */
|
|
13
|
-
abstract getMigrations(): Promise<PackagedMigrations>;
|
|
14
|
-
}
|
|
1
|
+
import { Migration } from './migration';
|
|
2
|
+
export type PackagedMigrations = Record<string, typeof Migration>;
|
|
3
|
+
/**
|
|
4
|
+
* Create migration packages that can bundle multiple migrations together.
|
|
5
|
+
* Useful for libraries that want to distribute migrations with their package.
|
|
6
|
+
*/
|
|
7
|
+
export declare abstract class MigrationPackage {
|
|
8
|
+
/** The name of the package, used for logging */
|
|
9
|
+
abstract name: string;
|
|
10
|
+
/** The package identifier, used for storing migration records */
|
|
11
|
+
abstract package: string;
|
|
12
|
+
/** Override to provide the migrations included in this package */
|
|
13
|
+
abstract getMigrations(): Promise<PackagedMigrations>;
|
|
14
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MigrationPackage = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Create migration packages that can bundle multiple migrations together.
|
|
6
|
-
* Useful for libraries that want to distribute migrations with their package.
|
|
7
|
-
*/
|
|
8
|
-
class MigrationPackage {
|
|
9
|
-
}
|
|
10
|
-
exports.MigrationPackage = MigrationPackage;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MigrationPackage = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Create migration packages that can bundle multiple migrations together.
|
|
6
|
+
* Useful for libraries that want to distribute migrations with their package.
|
|
7
|
+
*/
|
|
8
|
+
class MigrationPackage {
|
|
9
|
+
}
|
|
10
|
+
exports.MigrationPackage = MigrationPackage;
|
|
11
11
|
//# sourceMappingURL=migration-package.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { DatabaseRecordId } from '../record';
|
|
2
|
-
/**
|
|
3
|
-
* A record in the migration table
|
|
4
|
-
*/
|
|
5
|
-
export interface MigrationRecord {
|
|
6
|
-
id: DatabaseRecordId;
|
|
7
|
-
name: string;
|
|
8
|
-
package: string | null;
|
|
9
|
-
timestamp: string;
|
|
10
|
-
}
|
|
1
|
+
import { DatabaseRecordId } from '../record';
|
|
2
|
+
/**
|
|
3
|
+
* A record in the migration table
|
|
4
|
+
*/
|
|
5
|
+
export interface MigrationRecord {
|
|
6
|
+
id: DatabaseRecordId;
|
|
7
|
+
name: string;
|
|
8
|
+
package: string | null;
|
|
9
|
+
timestamp: string;
|
|
10
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=migration-record.js.map
|