@riao/dbal 1.1.3 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/builder/builder.d.ts +1 -46
- package/builder/builder.js +1 -125
- package/builder/builder.js.map +1 -1
- package/builder/index.d.ts +1 -0
- package/builder/index.js +3 -1
- package/builder/index.js.map +1 -1
- package/builder/sql-builder.d.ts +40 -0
- package/builder/sql-builder.js +114 -0
- package/builder/sql-builder.js.map +1 -0
- package/builder/statement-builder.d.ts +10 -0
- package/builder/statement-builder.js +24 -0
- package/builder/statement-builder.js.map +1 -0
- package/column/column-options.d.ts +1 -1
- package/comparison/comparison-aliases.d.ts +10 -0
- package/comparison/comparison-aliases.js +41 -0
- package/comparison/comparison-aliases.js.map +1 -0
- package/comparison/comparison-token.d.ts +17 -0
- package/comparison/comparison-token.js +16 -0
- package/comparison/comparison-token.js.map +1 -0
- package/comparison/comparison.d.ts +13 -0
- package/comparison/comparison.js +72 -0
- package/comparison/comparison.js.map +1 -0
- package/comparison/index.d.ts +4 -0
- package/comparison/index.js +25 -0
- package/comparison/index.js.map +1 -0
- package/comparison/is-comparison-token.d.ts +2 -0
- package/comparison/is-comparison-token.js +9 -0
- package/comparison/is-comparison-token.js.map +1 -0
- package/database/database.d.ts +0 -6
- package/database/database.js +1 -8
- package/database/database.js.map +1 -1
- package/ddl/ddl-builder.d.ts +7 -2
- package/ddl/ddl-builder.js +105 -91
- package/ddl/ddl-builder.js.map +1 -1
- package/ddl/ddl-repository.js +15 -14
- package/ddl/ddl-repository.js.map +1 -1
- package/dml/delete.d.ts +2 -2
- package/dml/group-by.d.ts +4 -0
- package/dml/group-by.js +3 -0
- package/dml/group-by.js.map +1 -0
- package/dml/index.d.ts +2 -2
- package/dml/index.js +2 -2
- package/dml/index.js.map +1 -1
- package/dml/insert.d.ts +7 -4
- package/dml/join.d.ts +3 -3
- package/dml/query-builder.d.ts +41 -20
- package/dml/query-builder.js +301 -172
- package/dml/query-builder.js.map +1 -1
- package/dml/query-repository.d.ts +7 -1
- package/dml/query-repository.js +66 -13
- package/dml/query-repository.js.map +1 -1
- package/dml/select.d.ts +9 -6
- package/dml/subquery.d.ts +5 -0
- package/dml/subquery.js +11 -0
- package/dml/subquery.js.map +1 -0
- package/dml/update.d.ts +2 -2
- package/expression/expression-token.d.ts +9 -0
- package/expression/expression-token.js +11 -0
- package/expression/expression-token.js.map +1 -0
- package/expression/expression.d.ts +6 -0
- package/expression/expression.js +3 -0
- package/expression/expression.js.map +1 -0
- package/expression/identifier.d.ts +7 -0
- package/expression/identifier.js +16 -0
- package/expression/identifier.js.map +1 -0
- package/expression/index.d.ts +5 -0
- package/expression/index.js +24 -0
- package/expression/index.js.map +1 -0
- package/expression/is-expression-token.d.ts +2 -0
- package/expression/is-expression-token.js +8 -0
- package/expression/is-expression-token.js.map +1 -0
- package/expression/key-val-expression.d.ts +7 -0
- package/expression/key-val-expression.js +3 -0
- package/expression/key-val-expression.js.map +1 -0
- package/expression/literal.d.ts +2 -0
- package/expression/literal.js +3 -0
- package/expression/literal.js.map +1 -0
- package/expression/logical.d.ts +18 -0
- package/expression/logical.js +31 -0
- package/expression/logical.js.map +1 -0
- package/expression/simple-expression.d.ts +5 -0
- package/expression/simple-expression.js +3 -0
- package/expression/simple-expression.js.map +1 -0
- package/functions/function-aliases.d.ts +3 -0
- package/functions/function-aliases.js +13 -0
- package/functions/function-aliases.js.map +1 -0
- package/functions/{function-interface.d.ts → function-token.d.ts} +8 -7
- package/functions/{function-interface.js → function-token.js} +3 -2
- package/functions/function-token.js.map +1 -0
- package/functions/functions.d.ts +3 -2
- package/functions/functions.js +15 -4
- package/functions/functions.js.map +1 -1
- package/functions/index.d.ts +4 -1
- package/functions/index.js +6 -1
- package/functions/index.js.map +1 -1
- package/functions/is-database-function.d.ts +8 -0
- package/functions/is-database-function.js +15 -0
- package/functions/is-database-function.js.map +1 -0
- package/index.d.ts +4 -0
- package/index.js +4 -0
- package/index.js.map +1 -1
- package/migration/create-migration-table.js +2 -1
- package/migration/create-migration-table.js.map +1 -1
- package/package.json +1 -1
- package/repository/repository-options.d.ts +0 -2
- package/repository/repository.d.ts +12 -3
- package/repository/repository.js +32 -1
- package/repository/repository.js.map +1 -1
- package/seed/auto-seed.js +16 -16
- package/seed/auto-seed.js.map +1 -1
- package/seed/create-seed-table.js +2 -1
- package/seed/create-seed-table.js.map +1 -1
- package/tokens/index.d.ts +1 -0
- package/tokens/index.js +6 -0
- package/tokens/index.js.map +1 -0
- package/dml/column-name.d.ts +0 -3
- package/dml/column-name.js +0 -12
- package/dml/column-name.js.map +0 -1
- package/dml/where.d.ts +0 -26
- package/dml/where.js +0 -67
- package/dml/where.js.map +0 -1
- package/functions/function-interface.js.map +0 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ExpressionToken } from '../expression/expression-token';
|
|
1
2
|
import { ColumnType } from '../column';
|
|
2
3
|
/**
|
|
3
4
|
* Database functions are typed by column type, so that users
|
|
@@ -6,15 +7,15 @@ import { ColumnType } from '../column';
|
|
|
6
7
|
*/
|
|
7
8
|
export type DatabaseFunctionReturnType = keyof typeof ColumnType;
|
|
8
9
|
export declare enum DatabaseFunctionKeys {
|
|
9
|
-
|
|
10
|
+
COUNT = 0,
|
|
11
|
+
CURRENT_TIMESTAMP = 1
|
|
12
|
+
}
|
|
13
|
+
export interface DatabaseFunction<T extends DatabaseFunctionReturnType = DatabaseFunctionReturnType> {
|
|
14
|
+
fn: DatabaseFunctionKeys;
|
|
15
|
+
type: T;
|
|
10
16
|
}
|
|
11
17
|
/**
|
|
12
18
|
* A token is returned by database functions, so that it can be
|
|
13
19
|
* interpreted during sql generation.
|
|
14
20
|
*/
|
|
15
|
-
export
|
|
16
|
-
riao_dbfn: DatabaseFunctionKeys;
|
|
17
|
-
type: T;
|
|
18
|
-
sql: string;
|
|
19
|
-
params?: any[];
|
|
20
|
-
}
|
|
21
|
+
export type DatabaseFunctionToken<T extends DatabaseFunctionReturnType = DatabaseFunctionReturnType> = ExpressionToken & DatabaseFunction<T>;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.DatabaseFunctionKeys = void 0;
|
|
4
4
|
var DatabaseFunctionKeys;
|
|
5
5
|
(function (DatabaseFunctionKeys) {
|
|
6
|
-
DatabaseFunctionKeys["
|
|
6
|
+
DatabaseFunctionKeys[DatabaseFunctionKeys["COUNT"] = 0] = "COUNT";
|
|
7
|
+
DatabaseFunctionKeys[DatabaseFunctionKeys["CURRENT_TIMESTAMP"] = 1] = "CURRENT_TIMESTAMP";
|
|
7
8
|
})(DatabaseFunctionKeys = exports.DatabaseFunctionKeys || (exports.DatabaseFunctionKeys = {}));
|
|
8
|
-
//# sourceMappingURL=function-
|
|
9
|
+
//# sourceMappingURL=function-token.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function-token.js","sourceRoot":"","sources":["../../../src/functions/function-token.ts"],"names":[],"mappings":";;;AAUA,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC/B,iEAAK,CAAA;IACL,yFAAiB,CAAA;AAClB,CAAC,EAHW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAG/B"}
|
package/functions/functions.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ColumnType } from '../column';
|
|
2
|
-
import { DatabaseFunctionToken } from './function-
|
|
2
|
+
import { DatabaseFunctionToken } from './function-token';
|
|
3
3
|
export declare class DatabaseFunctions {
|
|
4
|
-
|
|
4
|
+
static count(): DatabaseFunctionToken<ColumnType.BIGINT>;
|
|
5
|
+
static currentTimestamp(): DatabaseFunctionToken<ColumnType.TIMESTAMP>;
|
|
5
6
|
}
|
package/functions/functions.js
CHANGED
|
@@ -1,17 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DatabaseFunctions = void 0;
|
|
4
|
+
const expression_token_1 = require("../expression/expression-token");
|
|
4
5
|
const column_1 = require("../column");
|
|
5
|
-
const
|
|
6
|
+
const function_token_1 = require("./function-token");
|
|
6
7
|
class DatabaseFunctions {
|
|
8
|
+
// ------------------------------------------------------------------------
|
|
9
|
+
// Math functions
|
|
10
|
+
// ------------------------------------------------------------------------
|
|
11
|
+
static count() {
|
|
12
|
+
return {
|
|
13
|
+
riao_expr: expression_token_1.ExpressionTokenKey.FUNCTION_CALL,
|
|
14
|
+
fn: function_token_1.DatabaseFunctionKeys.COUNT,
|
|
15
|
+
type: column_1.ColumnType.BIGINT,
|
|
16
|
+
};
|
|
17
|
+
}
|
|
7
18
|
// ------------------------------------------------------------------------
|
|
8
19
|
// Date/Time functions
|
|
9
20
|
// ------------------------------------------------------------------------
|
|
10
|
-
currentTimestamp() {
|
|
21
|
+
static currentTimestamp() {
|
|
11
22
|
return {
|
|
12
|
-
|
|
23
|
+
riao_expr: expression_token_1.ExpressionTokenKey.FUNCTION_CALL,
|
|
24
|
+
fn: function_token_1.DatabaseFunctionKeys.CURRENT_TIMESTAMP,
|
|
13
25
|
type: column_1.ColumnType.TIMESTAMP,
|
|
14
|
-
sql: 'CURRENT_TIMESTAMP',
|
|
15
26
|
};
|
|
16
27
|
}
|
|
17
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../../../src/functions/functions.ts"],"names":[],"mappings":";;;AAAA,sCAAuC;AACvC,
|
|
1
|
+
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../../../src/functions/functions.ts"],"names":[],"mappings":";;;AAAA,qEAAoE;AACpE,sCAAuC;AACvC,qDAA+E;AAE/E,MAAa,iBAAiB;IAC7B,2EAA2E;IAC3E,iBAAiB;IACjB,2EAA2E;IAEpE,MAAM,CAAC,KAAK;QAClB,OAAO;YACN,SAAS,EAAE,qCAAkB,CAAC,aAAa;YAC3C,EAAE,EAAE,qCAAoB,CAAC,KAAK;YAC9B,IAAI,EAAE,mBAAU,CAAC,MAAM;SACvB,CAAC;IACH,CAAC;IAED,2EAA2E;IAC3E,sBAAsB;IACtB,2EAA2E;IAEpE,MAAM,CAAC,gBAAgB;QAC7B,OAAO;YACN,SAAS,EAAE,qCAAkB,CAAC,aAAa;YAC3C,EAAE,EAAE,qCAAoB,CAAC,iBAAiB;YAC1C,IAAI,EAAE,mBAAU,CAAC,SAAS;SAC1B,CAAC;IACH,CAAC;CACD;AAxBD,8CAwBC"}
|
package/functions/index.d.ts
CHANGED
package/functions/index.js
CHANGED
|
@@ -14,5 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
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; } });
|
|
18
23
|
//# sourceMappingURL=index.js.map
|
package/functions/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/functions/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/functions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qDAAmC;AAEnC,yCAAgD;AAAvC,8GAAA,iBAAiB,OAAA;AAC1B,+DAA4D;AAAnD,0HAAA,kBAAkB,OAAA"}
|
|
@@ -0,0 +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;
|
|
@@ -0,0 +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;
|
|
15
|
+
//# sourceMappingURL=is-database-function.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-database-function.js","sourceRoot":"","sources":["../../../src/functions/is-database-function.ts"],"names":[],"mappings":";;;AAAA,qEAGwC;AAExC;;;;;GAKG;AACH,SAAgB,kBAAkB,CAAC,KAAsB;IACxD,OAAO,KAAK,CAAC,SAAS,KAAK,qCAAkB,CAAC,aAAa,CAAC;AAC7D,CAAC;AAFD,gDAEC"}
|
package/index.d.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
export * from './column';
|
|
2
|
+
export * from './comparison';
|
|
2
3
|
export * from './config';
|
|
3
4
|
export * from './database';
|
|
4
5
|
export * from './ddl';
|
|
5
6
|
export * from './dml';
|
|
7
|
+
export * from './expression';
|
|
8
|
+
export * from './functions';
|
|
6
9
|
export * from './migration';
|
|
7
10
|
export * from './record';
|
|
8
11
|
export * from './repository';
|
|
9
12
|
export * from './schema';
|
|
13
|
+
export * from './tokens';
|
package/index.js
CHANGED
|
@@ -15,12 +15,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./column"), exports);
|
|
18
|
+
__exportStar(require("./comparison"), exports);
|
|
18
19
|
__exportStar(require("./config"), exports);
|
|
19
20
|
__exportStar(require("./database"), exports);
|
|
20
21
|
__exportStar(require("./ddl"), exports);
|
|
21
22
|
__exportStar(require("./dml"), exports);
|
|
23
|
+
__exportStar(require("./expression"), exports);
|
|
24
|
+
__exportStar(require("./functions"), exports);
|
|
22
25
|
__exportStar(require("./migration"), exports);
|
|
23
26
|
__exportStar(require("./record"), exports);
|
|
24
27
|
__exportStar(require("./repository"), exports);
|
|
25
28
|
__exportStar(require("./schema"), exports);
|
|
29
|
+
__exportStar(require("./tokens"), exports);
|
|
26
30
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,2CAAyB;AACzB,6CAA2B;AAC3B,wCAAsB;AACtB,wCAAsB;AACtB,8CAA4B;AAC5B,2CAAyB;AACzB,+CAA6B;AAC7B,2CAAyB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,+CAA6B;AAC7B,2CAAyB;AACzB,6CAA2B;AAC3B,wCAAsB;AACtB,wCAAsB;AACtB,+CAA6B;AAC7B,8CAA4B;AAC5B,8CAA4B;AAC5B,2CAAyB;AACzB,+CAA6B;AAC7B,2CAAyB;AACzB,2CAAyB"}
|
|
@@ -11,6 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CreateMigrationTable = void 0;
|
|
13
13
|
const column_1 = require("../column");
|
|
14
|
+
const functions_1 = require("../functions");
|
|
14
15
|
const migration_1 = require("./migration");
|
|
15
16
|
/**
|
|
16
17
|
* Create a migration table to track current-state
|
|
@@ -36,7 +37,7 @@ class CreateMigrationTable extends migration_1.Migration {
|
|
|
36
37
|
{
|
|
37
38
|
name: 'timestamp',
|
|
38
39
|
type: column_1.ColumnType.TIMESTAMP,
|
|
39
|
-
default:
|
|
40
|
+
default: functions_1.DatabaseFunctions.currentTimestamp(),
|
|
40
41
|
},
|
|
41
42
|
],
|
|
42
43
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-migration-table.js","sourceRoot":"","sources":["../../../src/migration/create-migration-table.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sCAAuC;AACvC,2CAAwC;AAExC;;GAEG;AACH,MAAa,oBAAqB,SAAQ,qBAAS;IACrC,EAAE;;YACd,MAAM,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC;gBAC1B,IAAI,EAAE,gBAAgB;gBACtB,WAAW,EAAE,IAAI;gBACjB,OAAO,EAAE;oBACR;wBACC,IAAI,EAAE,IAAI;wBACV,IAAI,EAAE,mBAAU,CAAC,GAAG;wBACpB,aAAa,EAAE,IAAI;wBACnB,UAAU,EAAE,IAAI;qBAChB;oBACD;wBACC,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,mBAAU,CAAC,OAAO;wBACxB,MAAM,EAAE,GAAG;qBACX;oBACD;wBACC,IAAI,EAAE,WAAW;wBACjB,IAAI,EAAE,mBAAU,CAAC,SAAS;wBAC1B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"create-migration-table.js","sourceRoot":"","sources":["../../../src/migration/create-migration-table.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sCAAuC;AACvC,4CAAiD;AACjD,2CAAwC;AAExC;;GAEG;AACH,MAAa,oBAAqB,SAAQ,qBAAS;IACrC,EAAE;;YACd,MAAM,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC;gBAC1B,IAAI,EAAE,gBAAgB;gBACtB,WAAW,EAAE,IAAI;gBACjB,OAAO,EAAE;oBACR;wBACC,IAAI,EAAE,IAAI;wBACV,IAAI,EAAE,mBAAU,CAAC,GAAG;wBACpB,aAAa,EAAE,IAAI;wBACnB,UAAU,EAAE,IAAI;qBAChB;oBACD;wBACC,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,mBAAU,CAAC,OAAO;wBACxB,MAAM,EAAE,GAAG;qBACX;oBACD;wBACC,IAAI,EAAE,WAAW;wBACjB,IAAI,EAAE,mBAAU,CAAC,SAAS;wBAC1B,OAAO,EAAE,6BAAiB,CAAC,gBAAgB,EAAE;qBAC7C;iBACD;aACD,CAAC,CAAC;QACJ,CAAC;KAAA;IAEY,IAAI;;YAChB,MAAM,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC;gBACxB,MAAM,EAAE,gBAAgB;aACxB,CAAC,CAAC;QACJ,CAAC;KAAA;CACD;AA/BD,oDA+BC"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { DatabaseDriver } from '../database';
|
|
2
|
-
import { DatabaseFunctions } from '../functions';
|
|
1
|
+
import { DatabaseDriver, DatabaseQueryOptions, DatabaseQueryResult, DatabaseQueryTypes } from '../database';
|
|
3
2
|
import { RepositoryInit, RepositoryOptions } from './repository-options';
|
|
4
3
|
export declare class Repository {
|
|
5
4
|
protected driver: DatabaseDriver;
|
|
6
|
-
protected
|
|
5
|
+
protected isReady: any;
|
|
7
6
|
constructor(options: RepositoryOptions);
|
|
8
7
|
init(options: RepositoryInit): void;
|
|
9
8
|
/**
|
|
@@ -12,4 +11,14 @@ export declare class Repository {
|
|
|
12
11
|
* @param driver Driver to set
|
|
13
12
|
*/
|
|
14
13
|
setDriver(driver: DatabaseDriver): void;
|
|
14
|
+
/**
|
|
15
|
+
* Check if the database is ready, and throw an error if it's not
|
|
16
|
+
*/
|
|
17
|
+
readyCheck(): void;
|
|
18
|
+
/**
|
|
19
|
+
* Check & query the database
|
|
20
|
+
*
|
|
21
|
+
* @param query Query to run
|
|
22
|
+
*/
|
|
23
|
+
query(query: DatabaseQueryOptions | DatabaseQueryTypes): Promise<DatabaseQueryResult>;
|
|
15
24
|
}
|
package/repository/repository.js
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.Repository = void 0;
|
|
4
13
|
class Repository {
|
|
5
14
|
constructor(options) {
|
|
6
|
-
this.
|
|
15
|
+
this.isReady = null;
|
|
7
16
|
}
|
|
8
17
|
init(options) {
|
|
9
18
|
this.setDriver(options.driver);
|
|
@@ -16,6 +25,28 @@ class Repository {
|
|
|
16
25
|
setDriver(driver) {
|
|
17
26
|
this.driver = driver;
|
|
18
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* Check if the database is ready, and throw an error if it's not
|
|
30
|
+
*/
|
|
31
|
+
readyCheck() {
|
|
32
|
+
if (this.isReady === null) {
|
|
33
|
+
throw new Error('Cannot query repository before database init()');
|
|
34
|
+
}
|
|
35
|
+
else if (this.isReady === false) {
|
|
36
|
+
throw new Error('Cannot query repository because database init() failed');
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check & query the database
|
|
41
|
+
*
|
|
42
|
+
* @param query Query to run
|
|
43
|
+
*/
|
|
44
|
+
query(query) {
|
|
45
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
46
|
+
this.readyCheck();
|
|
47
|
+
return this.driver.query(query);
|
|
48
|
+
});
|
|
49
|
+
}
|
|
19
50
|
}
|
|
20
51
|
exports.Repository = Repository;
|
|
21
52
|
//# sourceMappingURL=repository.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repository.js","sourceRoot":"","sources":["../../../src/repository/repository.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"repository.js","sourceRoot":"","sources":["../../../src/repository/repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAQA,MAAa,UAAU;IAItB,YAAmB,OAA0B;QAFnC,YAAO,GAAG,IAAI,CAAC;IAEuB,CAAC;IAE1C,IAAI,CAAC,OAAuB;QAClC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED;;;;OAIG;IACI,SAAS,CAAC,MAAsB;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACtB,CAAC;IAED;;OAEG;IACI,UAAU;QAChB,IAAI,IAAI,CAAC,OAAO,KAAK,IAAI,EAAE;YAC1B,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;SAClE;aACI,IAAI,IAAI,CAAC,OAAO,KAAK,KAAK,EAAE;YAChC,MAAM,IAAI,KAAK,CACd,wDAAwD,CACxD,CAAC;SACF;IACF,CAAC;IAED;;;;OAIG;IACU,KAAK,CACjB,KAAgD;;YAEhD,IAAI,CAAC,UAAU,EAAE,CAAC;YAElB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACjC,CAAC;KAAA;CACD;AA7CD,gCA6CC"}
|
package/seed/auto-seed.js
CHANGED
|
@@ -10,28 +10,28 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.AutoSeed = void 0;
|
|
13
|
-
const
|
|
13
|
+
const comparison_1 = require("../comparison");
|
|
14
14
|
const seed_1 = require("./seed");
|
|
15
15
|
class AutoSeed extends seed_1.Seed {
|
|
16
16
|
up() {
|
|
17
17
|
return __awaiter(this, void 0, void 0, function* () {
|
|
18
18
|
const resolvedRecords = yield Promise.all(this.records.map((record) => __awaiter(this, void 0, void 0, function* () { return typeof record === 'function' ? record.bind(this)() : record; })));
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
19
|
+
for (const record of resolvedRecords) {
|
|
20
|
+
const inserted = yield this.query.insertOne({
|
|
21
|
+
table: this.table,
|
|
22
|
+
record: record,
|
|
23
|
+
ifNotExists: true,
|
|
24
|
+
});
|
|
25
|
+
yield this.query.insertOne({
|
|
26
|
+
table: 'riao_seed',
|
|
27
|
+
record: {
|
|
28
28
|
name: this.name,
|
|
29
29
|
tableName: this.table,
|
|
30
|
-
recordId:
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
30
|
+
recordId: inserted.id,
|
|
31
|
+
},
|
|
32
|
+
ifNotExists: true,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
down() {
|
|
@@ -43,7 +43,7 @@ class AutoSeed extends seed_1.Seed {
|
|
|
43
43
|
const recordIds = records.map((record) => record.id);
|
|
44
44
|
yield this.query.delete({
|
|
45
45
|
table: this.table,
|
|
46
|
-
where: { id: (0,
|
|
46
|
+
where: { id: (0, comparison_1.inArray)(recordIds) },
|
|
47
47
|
});
|
|
48
48
|
yield this.query.delete({
|
|
49
49
|
table: 'riao_seed',
|
package/seed/auto-seed.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auto-seed.js","sourceRoot":"","sources":["../../../src/seed/auto-seed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,
|
|
1
|
+
{"version":3,"file":"auto-seed.js","sourceRoot":"","sources":["../../../src/seed/auto-seed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,8CAAwC;AACxC,iCAA8B;AAE9B,MAAa,QAAS,SAAQ,WAAI;IAIpB,EAAE;;YACd,MAAM,eAAe,GAAG,MAAM,OAAO,CAAC,GAAG,CACxC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAO,MAAM,EAAE,EAAE,gDACjC,OAAA,OAAO,MAAM,KAAK,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAA,GAAA,CAC3D,CACD,CAAC;YAEF,KAAK,MAAM,MAAM,IAAI,eAAe,EAAE;gBACrC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC;oBAC3C,KAAK,EAAE,IAAI,CAAC,KAAK;oBACjB,MAAM,EAAE,MAAM;oBACd,WAAW,EAAE,IAAI;iBACjB,CAAC,CAAC;gBAEH,MAAM,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC;oBAC1B,KAAK,EAAE,WAAW;oBAClB,MAAM,EAAE;wBACP,IAAI,EAAE,IAAI,CAAC,IAAI;wBACf,SAAS,EAAE,IAAI,CAAC,KAAK;wBACrB,QAAQ,EAAE,QAAQ,CAAC,EAAE;qBACrB;oBACD,WAAW,EAAE,IAAI;iBACjB,CAAC,CAAC;aACH;QACF,CAAC;KAAA;IAEY,IAAI;;YAChB,MAAM,OAAO,GAAG,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;gBACtC,KAAK,EAAE,WAAW;gBAClB,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE;aAC1B,CAAC,CAAiB,CAAC;YAEpB,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;YAErD,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;gBACvB,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,KAAK,EAAE,EAAE,EAAE,EAAE,IAAA,oBAAO,EAAC,SAAS,CAAC,EAAE;aACjC,CAAC,CAAC;YAEH,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;gBACvB,KAAK,EAAE,WAAW;gBAClB,KAAK,EAAE;oBACN,IAAI,EAAE,IAAI,CAAC,IAAI;iBACf;aACD,CAAC,CAAC;QACJ,CAAC;KAAA;CACD;AAlDD,4BAkDC"}
|
|
@@ -10,6 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CreateSeedTable = void 0;
|
|
13
|
+
const functions_1 = require("../functions");
|
|
13
14
|
const column_1 = require("../column");
|
|
14
15
|
const migration_1 = require("../migration");
|
|
15
16
|
/**
|
|
@@ -46,7 +47,7 @@ class CreateSeedTable extends migration_1.Migration {
|
|
|
46
47
|
{
|
|
47
48
|
name: 'timestamp',
|
|
48
49
|
type: column_1.ColumnType.TIMESTAMP,
|
|
49
|
-
default:
|
|
50
|
+
default: functions_1.DatabaseFunctions.currentTimestamp(),
|
|
50
51
|
},
|
|
51
52
|
],
|
|
52
53
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-seed-table.js","sourceRoot":"","sources":["../../../src/seed/create-seed-table.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sCAAuC;AACvC,4CAAyC;AAEzC;;GAEG;AACH,MAAa,eAAgB,SAAQ,qBAAS;IAChC,EAAE;;YACd,MAAM,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC;gBAC1B,IAAI,EAAE,WAAW;gBACjB,WAAW,EAAE,IAAI;gBACjB,OAAO,EAAE;oBACR;wBACC,IAAI,EAAE,IAAI;wBACV,IAAI,EAAE,mBAAU,CAAC,GAAG;wBACpB,aAAa,EAAE,IAAI;wBACnB,UAAU,EAAE,IAAI;qBAChB;oBACD;wBACC,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,mBAAU,CAAC,OAAO;wBACxB,MAAM,EAAE,GAAG;qBACX;oBACD;wBACC,IAAI,EAAE,WAAW;wBACjB,IAAI,EAAE,mBAAU,CAAC,OAAO;wBACxB,MAAM,EAAE,GAAG;qBACX;oBACD;wBACC,IAAI,EAAE,UAAU;wBAChB,IAAI,EAAE,mBAAU,CAAC,OAAO;wBACxB,MAAM,EAAE,GAAG;qBACX;oBACD;wBACC,IAAI,EAAE,WAAW;wBACjB,IAAI,EAAE,mBAAU,CAAC,SAAS;wBAC1B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"create-seed-table.js","sourceRoot":"","sources":["../../../src/seed/create-seed-table.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAiD;AACjD,sCAAuC;AACvC,4CAAyC;AAEzC;;GAEG;AACH,MAAa,eAAgB,SAAQ,qBAAS;IAChC,EAAE;;YACd,MAAM,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC;gBAC1B,IAAI,EAAE,WAAW;gBACjB,WAAW,EAAE,IAAI;gBACjB,OAAO,EAAE;oBACR;wBACC,IAAI,EAAE,IAAI;wBACV,IAAI,EAAE,mBAAU,CAAC,GAAG;wBACpB,aAAa,EAAE,IAAI;wBACnB,UAAU,EAAE,IAAI;qBAChB;oBACD;wBACC,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,mBAAU,CAAC,OAAO;wBACxB,MAAM,EAAE,GAAG;qBACX;oBACD;wBACC,IAAI,EAAE,WAAW;wBACjB,IAAI,EAAE,mBAAU,CAAC,OAAO;wBACxB,MAAM,EAAE,GAAG;qBACX;oBACD;wBACC,IAAI,EAAE,UAAU;wBAChB,IAAI,EAAE,mBAAU,CAAC,OAAO;wBACxB,MAAM,EAAE,GAAG;qBACX;oBACD;wBACC,IAAI,EAAE,WAAW;wBACjB,IAAI,EAAE,mBAAU,CAAC,SAAS;wBAC1B,OAAO,EAAE,6BAAiB,CAAC,gBAAgB,EAAE;qBAC7C;iBACD;aACD,CAAC,CAAC;QACJ,CAAC;KAAA;IAEY,IAAI;;YAChB,MAAM,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC;gBACxB,MAAM,EAAE,WAAW;aACnB,CAAC,CAAC;QACJ,CAAC;KAAA;CACD;AAzCD,0CAyCC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { identifier as columnName } from '../expression/identifier';
|
package/tokens/index.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.columnName = void 0;
|
|
4
|
+
var identifier_1 = require("../expression/identifier");
|
|
5
|
+
Object.defineProperty(exports, "columnName", { enumerable: true, get: function () { return identifier_1.identifier; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tokens/index.ts"],"names":[],"mappings":";;;AAAA,uDAAoE;AAA3D,wGAAA,UAAU,OAAc"}
|
package/dml/column-name.d.ts
DELETED
package/dml/column-name.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ColumnName = void 0;
|
|
4
|
-
class ColumnName {
|
|
5
|
-
constructor(name) {
|
|
6
|
-
return {
|
|
7
|
-
riao_column: name,
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
exports.ColumnName = ColumnName;
|
|
12
|
-
//# sourceMappingURL=column-name.js.map
|
package/dml/column-name.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"column-name.js","sourceRoot":"","sources":["../../../src/dml/column-name.ts"],"names":[],"mappings":";;;AAAA,MAAa,UAAU;IACtB,YAAmB,IAAI;QACtB,OAAO;YACN,WAAW,EAAE,IAAI;SACjB,CAAC;IACH,CAAC;CACD;AAND,gCAMC"}
|
package/dml/where.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { DatabaseFunctionToken } from '../functions/function-interface';
|
|
2
|
-
import { DatabaseRecord } from '../record';
|
|
3
|
-
import { ColumnName } from './column-name';
|
|
4
|
-
export type WhereConditionType = 'equals' | 'like' | 'lt' | 'lte' | 'gt' | 'gte' | 'in' | 'not';
|
|
5
|
-
export interface WhereCondition {
|
|
6
|
-
riao_condition: WhereConditionType;
|
|
7
|
-
value: any;
|
|
8
|
-
}
|
|
9
|
-
export declare function equals(value: any): WhereCondition;
|
|
10
|
-
export declare function like(value: any): WhereCondition;
|
|
11
|
-
export declare function lt(value: any): WhereCondition;
|
|
12
|
-
export declare function lte(value: any): WhereCondition;
|
|
13
|
-
export declare function gt(value: any): WhereCondition;
|
|
14
|
-
export declare function gte(value: any): WhereCondition;
|
|
15
|
-
export declare function inArray(value: any[]): WhereCondition;
|
|
16
|
-
export declare function columnName(name: string): ColumnName;
|
|
17
|
-
export interface NotWhereCondition extends WhereCondition {
|
|
18
|
-
riao_condition: 'not';
|
|
19
|
-
}
|
|
20
|
-
export declare function not(value: any): NotWhereCondition;
|
|
21
|
-
export type WhereKeyVal<T extends DatabaseRecord = DatabaseRecord> = {
|
|
22
|
-
[key in keyof Partial<T>]: undefined | null | string | number | boolean | WhereCondition | ColumnName | DatabaseFunctionToken;
|
|
23
|
-
};
|
|
24
|
-
export type Where<T extends DatabaseRecord = DatabaseRecord> = 'and' | 'or' | 'null' | WhereKeyVal<T> | NotWhereCondition | Where<T>[];
|
|
25
|
-
export declare const and = "and";
|
|
26
|
-
export declare const or = "or";
|
package/dml/where.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.or = exports.and = exports.not = exports.columnName = exports.inArray = exports.gte = exports.gt = exports.lte = exports.lt = exports.like = exports.equals = void 0;
|
|
4
|
-
const column_name_1 = require("./column-name");
|
|
5
|
-
function equals(value) {
|
|
6
|
-
return {
|
|
7
|
-
riao_condition: 'equals',
|
|
8
|
-
value: value,
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
exports.equals = equals;
|
|
12
|
-
function like(value) {
|
|
13
|
-
return {
|
|
14
|
-
riao_condition: 'like',
|
|
15
|
-
value: value,
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
exports.like = like;
|
|
19
|
-
function lt(value) {
|
|
20
|
-
return {
|
|
21
|
-
riao_condition: 'lt',
|
|
22
|
-
value: value,
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
exports.lt = lt;
|
|
26
|
-
function lte(value) {
|
|
27
|
-
return {
|
|
28
|
-
riao_condition: 'lte',
|
|
29
|
-
value: value,
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
exports.lte = lte;
|
|
33
|
-
function gt(value) {
|
|
34
|
-
return {
|
|
35
|
-
riao_condition: 'gt',
|
|
36
|
-
value: value,
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
exports.gt = gt;
|
|
40
|
-
function gte(value) {
|
|
41
|
-
return {
|
|
42
|
-
riao_condition: 'gte',
|
|
43
|
-
value: value,
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
exports.gte = gte;
|
|
47
|
-
function inArray(value) {
|
|
48
|
-
return {
|
|
49
|
-
riao_condition: 'in',
|
|
50
|
-
value: value,
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
exports.inArray = inArray;
|
|
54
|
-
function columnName(name) {
|
|
55
|
-
return new column_name_1.ColumnName(name);
|
|
56
|
-
}
|
|
57
|
-
exports.columnName = columnName;
|
|
58
|
-
function not(value) {
|
|
59
|
-
return {
|
|
60
|
-
riao_condition: 'not',
|
|
61
|
-
value: value,
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
exports.not = not;
|
|
65
|
-
exports.and = 'and';
|
|
66
|
-
exports.or = 'or';
|
|
67
|
-
//# sourceMappingURL=where.js.map
|
package/dml/where.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"where.js","sourceRoot":"","sources":["../../../src/dml/where.ts"],"names":[],"mappings":";;;AAEA,+CAA2C;AAiB3C,SAAgB,MAAM,CAAC,KAAU;IAChC,OAAO;QACN,cAAc,EAAE,QAAQ;QACxB,KAAK,EAAE,KAAK;KACZ,CAAC;AACH,CAAC;AALD,wBAKC;AAED,SAAgB,IAAI,CAAC,KAAU;IAC9B,OAAO;QACN,cAAc,EAAE,MAAM;QACtB,KAAK,EAAE,KAAK;KACZ,CAAC;AACH,CAAC;AALD,oBAKC;AAED,SAAgB,EAAE,CAAC,KAAU;IAC5B,OAAO;QACN,cAAc,EAAE,IAAI;QACpB,KAAK,EAAE,KAAK;KACZ,CAAC;AACH,CAAC;AALD,gBAKC;AAED,SAAgB,GAAG,CAAC,KAAU;IAC7B,OAAO;QACN,cAAc,EAAE,KAAK;QACrB,KAAK,EAAE,KAAK;KACZ,CAAC;AACH,CAAC;AALD,kBAKC;AAED,SAAgB,EAAE,CAAC,KAAU;IAC5B,OAAO;QACN,cAAc,EAAE,IAAI;QACpB,KAAK,EAAE,KAAK;KACZ,CAAC;AACH,CAAC;AALD,gBAKC;AAED,SAAgB,GAAG,CAAC,KAAU;IAC7B,OAAO;QACN,cAAc,EAAE,KAAK;QACrB,KAAK,EAAE,KAAK;KACZ,CAAC;AACH,CAAC;AALD,kBAKC;AAED,SAAgB,OAAO,CAAC,KAAY;IACnC,OAAO;QACN,cAAc,EAAE,IAAI;QACpB,KAAK,EAAE,KAAK;KACZ,CAAC;AACH,CAAC;AALD,0BAKC;AAED,SAAgB,UAAU,CAAC,IAAY;IACtC,OAAO,IAAI,wBAAU,CAAC,IAAI,CAAC,CAAC;AAC7B,CAAC;AAFD,gCAEC;AAMD,SAAgB,GAAG,CAAC,KAAU;IAC7B,OAAO;QACN,cAAc,EAAE,KAAK;QACrB,KAAK,EAAE,KAAK;KACZ,CAAC;AACH,CAAC;AALD,kBAKC;AAsBY,QAAA,GAAG,GAAG,KAAK,CAAC;AACZ,QAAA,EAAE,GAAG,IAAI,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"function-interface.js","sourceRoot":"","sources":["../../../src/functions/function-interface.ts"],"names":[],"mappings":";;;AASA,IAAY,oBAEX;AAFD,WAAY,oBAAoB;IAC/B,+DAAuC,CAAA;AACxC,CAAC,EAFW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAE/B"}
|