@l-v-yonsama/multi-platform-database-drivers 0.1.15 → 0.1.17
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 +109 -0
- package/built/src/db/DBError.d.ts +1 -1
- package/built/src/db/DBError.js +2 -1
- package/built/src/db/DBError.js.map +1 -1
- package/built/src/db/drivers/AwsS3Driver.d.ts +3 -4
- package/built/src/db/drivers/AwsS3Driver.js +10 -11
- package/built/src/db/drivers/AwsS3Driver.js.map +1 -1
- package/built/src/db/drivers/BaseDriver.d.ts +3 -4
- package/built/src/db/drivers/BaseDriver.js +8 -8
- package/built/src/db/drivers/BaseDriver.js.map +1 -1
- package/built/src/db/drivers/MySQLDriver.d.ts +3 -4
- package/built/src/db/drivers/MySQLDriver.js +17 -19
- package/built/src/db/drivers/MySQLDriver.js.map +1 -1
- package/built/src/db/drivers/PostgresDriver.d.ts +3 -4
- package/built/src/db/drivers/PostgresDriver.js +16 -18
- package/built/src/db/drivers/PostgresDriver.js.map +1 -1
- package/built/src/db/drivers/RedisDriver.d.ts +3 -4
- package/built/src/db/drivers/RedisDriver.js +12 -12
- package/built/src/db/drivers/RedisDriver.js.map +1 -1
- package/built/src/db/resource/DbResource.d.ts +2 -8
- package/built/src/db/resource/DbResource.js +22 -26
- package/built/src/db/resource/DbResource.js.map +1 -1
- package/built/src/db/resource/MultipleResultSetDataHolder.d.ts +2 -2
- package/built/src/db/resource/MultipleResultSetDataHolder.js +4 -3
- package/built/src/db/resource/MultipleResultSetDataHolder.js.map +1 -1
- package/built/src/db/resource/ResultSetDataHolder.d.ts +2 -2
- package/built/src/db/resource/ResultSetDataHolder.js +18 -18
- package/built/src/db/resource/ResultSetDataHolder.js.map +1 -1
- package/built/src/db/resource/types/DBType.d.ts +11 -18
- package/built/src/db/resource/types/DBType.js +24 -47
- package/built/src/db/resource/types/DBType.js.map +1 -1
- package/built/src/service/DBAccessService.d.ts +1 -2
- package/built/src/service/DBAccessService.js +7 -10
- package/built/src/service/DBAccessService.js.map +1 -1
- package/built/src/service/DBDriverResolver.d.ts +1 -2
- package/built/src/service/DBDriverResolver.js +11 -16
- package/built/src/service/DBDriverResolver.js.map +1 -1
- package/built/src/service/SQLService.d.ts +1 -1
- package/built/src/service/request/RedisRequest.d.ts +1 -1
- package/built/src/service/request/index.d.ts +2 -0
- package/built/src/service/request/index.js +3 -0
- package/built/src/service/request/index.js.map +1 -1
- package/built/src/service/response/index.d.ts +1 -0
- package/built/src/service/response/index.js +1 -0
- package/built/src/service/response/index.js.map +1 -1
- package/built/src/service/response/result/ConnectionResult.js.map +1 -0
- package/built/src/service/response/{reply/GeneralReply.d.ts → result/GeneralResult.d.ts} +1 -1
- package/built/src/service/response/{reply/GeneralReply.js → result/GeneralResult.js} +4 -3
- package/built/src/service/response/result/GeneralResult.js.map +1 -0
- package/built/src/service/response/{reply/ProgressReply.d.ts → result/ProgressResult.d.ts} +2 -2
- package/built/src/service/response/{reply/ProgressReply.js → result/ProgressResult.js} +5 -5
- package/built/src/service/response/result/ProgressResult.js.map +1 -0
- package/built/src/service/response/result/index.d.ts +3 -0
- package/built/src/service/response/result/index.js +7 -0
- package/built/src/service/response/result/index.js.map +1 -0
- package/package.json +2 -2
- package/built/src/service/response/reply/ConnectionResult.js.map +0 -1
- package/built/src/service/response/reply/FileExportReply.d.ts +0 -10
- package/built/src/service/response/reply/FileExportReply.js +0 -18
- package/built/src/service/response/reply/FileExportReply.js.map +0 -1
- package/built/src/service/response/reply/FileProcessResult.d.ts +0 -14
- package/built/src/service/response/reply/FileProcessResult.js +0 -29
- package/built/src/service/response/reply/FileProcessResult.js.map +0 -1
- package/built/src/service/response/reply/GeneralReply.js.map +0 -1
- package/built/src/service/response/reply/OutputReply.d.ts +0 -9
- package/built/src/service/response/reply/OutputReply.js +0 -17
- package/built/src/service/response/reply/OutputReply.js.map +0 -1
- package/built/src/service/response/reply/ProgressReply.js.map +0 -1
- package/built/src/service/response/reply/types/FileExportType.d.ts +0 -3
- package/built/src/service/response/reply/types/FileExportType.js +0 -9
- package/built/src/service/response/reply/types/FileExportType.js.map +0 -1
- package/built/src/service/response/reply/types/OutputType.d.ts +0 -11
- package/built/src/service/response/reply/types/OutputType.js +0 -16
- package/built/src/service/response/reply/types/OutputType.js.map +0 -1
- package/built/src/service/response/reply/types/ReplyEventType.d.ts +0 -10
- package/built/src/service/response/reply/types/ReplyEventType.js +0 -16
- package/built/src/service/response/reply/types/ReplyEventType.js.map +0 -1
- /package/built/src/service/response/{reply → result}/ConnectionResult.d.ts +0 -0
- /package/built/src/service/response/{reply → result}/ConnectionResult.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FileExportReply.js","sourceRoot":"","sources":["../../../../../src/service/response/reply/FileExportReply.ts"],"names":[],"mappings":";;;AAAA,8EAA4C;AAC5C,0EAA0C;AAG1C,MAAM,GAAG,GAAG,IAAI,yBAAa,EAAE,CAAC;AAEhC,MAAqB,eAAgB,SAAQ,sBAAY;IAOvD,YAAY,WAA2B,EAAE,WAAmB;QAC1D,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QALX,OAAE,GAAG,IAAI,CAAC;QACV,YAAO,GAAG,EAAE,CAAC;QAKlB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,UAAU,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QACpC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;CACF;AAbD,kCAaC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import GeneralReply from './GeneralReply';
|
|
3
|
-
export default class FileProcessResult extends GeneralReply {
|
|
4
|
-
extension: string;
|
|
5
|
-
file_url?: string;
|
|
6
|
-
file_path?: string;
|
|
7
|
-
file_name: string;
|
|
8
|
-
data?: string | Buffer;
|
|
9
|
-
constructor(ok: boolean, message: string, options: {
|
|
10
|
-
file_path?: string;
|
|
11
|
-
file_url?: string;
|
|
12
|
-
data?: string | Buffer;
|
|
13
|
-
});
|
|
14
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const path = tslib_1.__importStar(require("path"));
|
|
5
|
-
const GeneralReply_1 = tslib_1.__importDefault(require("./GeneralReply"));
|
|
6
|
-
class FileProcessResult extends GeneralReply_1.default {
|
|
7
|
-
constructor(ok, message, options) {
|
|
8
|
-
super(ok, message);
|
|
9
|
-
this.extension = '';
|
|
10
|
-
this.file_name = '';
|
|
11
|
-
if (options.file_path) {
|
|
12
|
-
this.file_path = options.file_path;
|
|
13
|
-
this.file_name = path.basename(options.file_path);
|
|
14
|
-
}
|
|
15
|
-
if (options.file_url) {
|
|
16
|
-
this.file_url = options.file_url;
|
|
17
|
-
this.file_name = path.basename(options.file_url);
|
|
18
|
-
}
|
|
19
|
-
const dot = this.file_name.lastIndexOf(".");
|
|
20
|
-
if (dot >= 0) {
|
|
21
|
-
this.extension = this.file_name.substring(dot + 1);
|
|
22
|
-
}
|
|
23
|
-
if (options.data) {
|
|
24
|
-
this.data = options.data;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
exports.default = FileProcessResult;
|
|
29
|
-
//# sourceMappingURL=FileProcessResult.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FileProcessResult.js","sourceRoot":"","sources":["../../../../../src/service/response/reply/FileProcessResult.ts"],"names":[],"mappings":";;;AAAA,mDAA6B;AAC7B,0EAA0C;AAE1C,MAAqB,iBAAkB,SAAQ,sBAAY;IAOzD,YAAY,EAAW,EAAE,OAAe,EAAE,OAIzC;QACC,KAAK,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;QAXd,cAAS,GAAG,EAAE,CAAC;QAGf,cAAS,GAAG,EAAE,CAAC;QASpB,IAAI,OAAO,CAAC,SAAS,EAAE;YACrB,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;YACnC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;SACnD;QACD,IAAI,OAAO,CAAC,QAAQ,EAAE;YACpB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;YACjC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;SAClD;QACD,MAAM,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QAC5C,IAAI,GAAG,IAAI,CAAC,EAAE;YACZ,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;SACpD;QACD,IAAI,OAAO,CAAC,IAAI,EAAE;YAChB,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;SAC1B;IACH,CAAC;CACF;AA7BD,oCA6BC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GeneralReply.js","sourceRoot":"","sources":["../../../../../src/service/response/reply/GeneralReply.ts"],"names":[],"mappings":";;AAAA,MAAqB,YAAY;IAK/B,YAAY,EAAE,GAAG,IAAI,EAAE,OAAO,GAAG,EAAE;QAJ5B,OAAE,GAAG,IAAI,CAAC;QACV,YAAO,GAAG,EAAE,CAAC;QAIlB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;CACF;AATD,+BASC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { OutputType } from './types/OutputType';
|
|
2
|
-
import GeneralReply from './GeneralReply';
|
|
3
|
-
export default class OutputReply extends GeneralReply {
|
|
4
|
-
output_type: OutputType;
|
|
5
|
-
request_id: string;
|
|
6
|
-
label: string;
|
|
7
|
-
content: any;
|
|
8
|
-
constructor(output_type: OutputType, label: string, content: any);
|
|
9
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const short_unique_id_1 = tslib_1.__importDefault(require("short-unique-id"));
|
|
5
|
-
const GeneralReply_1 = tslib_1.__importDefault(require("./GeneralReply"));
|
|
6
|
-
const uid = new short_unique_id_1.default();
|
|
7
|
-
class OutputReply extends GeneralReply_1.default {
|
|
8
|
-
constructor(output_type, label, content) {
|
|
9
|
-
super(true, '');
|
|
10
|
-
this.output_type = output_type;
|
|
11
|
-
this.request_id = uid.randomUUID(6);
|
|
12
|
-
this.label = label;
|
|
13
|
-
this.content = content;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
exports.default = OutputReply;
|
|
17
|
-
//# sourceMappingURL=OutputReply.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OutputReply.js","sourceRoot":"","sources":["../../../../../src/service/response/reply/OutputReply.ts"],"names":[],"mappings":";;;AAAA,8EAA4C;AAE5C,0EAA0C;AAE1C,MAAM,GAAG,GAAG,IAAI,yBAAa,EAAE,CAAC;AAEhC,MAAqB,WAAY,SAAQ,sBAAY;IAMnD,YAAY,WAAuB,EAAE,KAAa,EAAE,OAAY;QAC9D,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAChB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,UAAU,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QACpC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;CACF;AAbD,8BAaC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressReply.js","sourceRoot":"","sources":["../../../../../src/service/response/reply/ProgressReply.ts"],"names":[],"mappings":";;;AAAA,0EAA0C;AAE1C,MAAqB,aAAc,SAAQ,sBAAY;IAKrD,YAAY,MAAc,EAAE,OAAe,EAAE,QAAgB,EAAE,OAAa;QAC1E,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;CACF;AAXD,gCAWC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FileExportType = void 0;
|
|
4
|
-
var FileExportType;
|
|
5
|
-
(function (FileExportType) {
|
|
6
|
-
FileExportType["Excel"] = "Excel";
|
|
7
|
-
})(FileExportType = exports.FileExportType || (exports.FileExportType = {}));
|
|
8
|
-
;
|
|
9
|
-
//# sourceMappingURL=FileExportType.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FileExportType.js","sourceRoot":"","sources":["../../../../../../src/service/response/reply/types/FileExportType.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAEX;AAFD,WAAY,cAAc;IACxB,iCAAe,CAAA;AACjB,CAAC,EAFW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAEzB;AAAA,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare enum OutputType {
|
|
2
|
-
Log = "output.Log",
|
|
3
|
-
SqlHistory = "output.SqlHistory",
|
|
4
|
-
SingleResultSet = "output.SingleResultSet",
|
|
5
|
-
CountTableRowsResult = "output.CountTableRowsResult",
|
|
6
|
-
MultipleResultSet = "output.MultipleResultSet",
|
|
7
|
-
RedisCommandResultSet = "output.RedisCommandResultSet",
|
|
8
|
-
S3ContantFilePath = "output.S3ContantFilePath",
|
|
9
|
-
IndexedDBKeyWithValue = "output.IndexedDBKeyWithValue",
|
|
10
|
-
RestResponse = "output.RestResponse"
|
|
11
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OutputType = void 0;
|
|
4
|
-
var OutputType;
|
|
5
|
-
(function (OutputType) {
|
|
6
|
-
OutputType["Log"] = "output.Log";
|
|
7
|
-
OutputType["SqlHistory"] = "output.SqlHistory";
|
|
8
|
-
OutputType["SingleResultSet"] = "output.SingleResultSet";
|
|
9
|
-
OutputType["CountTableRowsResult"] = "output.CountTableRowsResult";
|
|
10
|
-
OutputType["MultipleResultSet"] = "output.MultipleResultSet";
|
|
11
|
-
OutputType["RedisCommandResultSet"] = "output.RedisCommandResultSet";
|
|
12
|
-
OutputType["S3ContantFilePath"] = "output.S3ContantFilePath";
|
|
13
|
-
OutputType["IndexedDBKeyWithValue"] = "output.IndexedDBKeyWithValue";
|
|
14
|
-
OutputType["RestResponse"] = "output.RestResponse";
|
|
15
|
-
})(OutputType = exports.OutputType || (exports.OutputType = {}));
|
|
16
|
-
//# sourceMappingURL=OutputType.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OutputType.js","sourceRoot":"","sources":["../../../../../../src/service/response/reply/types/OutputType.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAUX;AAVD,WAAY,UAAU;IACpB,gCAAkB,CAAA;IAClB,8CAAgC,CAAA;IAChC,wDAA0C,CAAA;IAC1C,kEAAoD,CAAA;IACpD,4DAA8C,CAAA;IAC9C,oEAAsD,CAAA;IACtD,4DAA8C,CAAA;IAC9C,oEAAsD,CAAA;IACtD,kDAAoC,CAAA;AACtC,CAAC,EAVW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAUrB"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare enum ReplyEventType {
|
|
2
|
-
REPLY_RESOURCE_LIST = "reply.resource.list",
|
|
3
|
-
REPLY_SQL_OUTPUT = "reply.sql.output",
|
|
4
|
-
REPLY_TOGGLE_CONNECT = "reply.toggle.connect",
|
|
5
|
-
REPLY_TEST_CONNECTION = "reply.test.connection",
|
|
6
|
-
REPLY_S3_GET_OBJECT = "reply.s3.getObject",
|
|
7
|
-
REPLY_FILE_OUTPUT = "reply.file.output",
|
|
8
|
-
REPLY_AUTOMATION_CREATE = "reply.automation.create",
|
|
9
|
-
REPLY_AUTOMATION_DESTROY = "reply.automation.destroy"
|
|
10
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReplyEventType = void 0;
|
|
4
|
-
var ReplyEventType;
|
|
5
|
-
(function (ReplyEventType) {
|
|
6
|
-
ReplyEventType["REPLY_RESOURCE_LIST"] = "reply.resource.list";
|
|
7
|
-
ReplyEventType["REPLY_SQL_OUTPUT"] = "reply.sql.output";
|
|
8
|
-
ReplyEventType["REPLY_TOGGLE_CONNECT"] = "reply.toggle.connect";
|
|
9
|
-
ReplyEventType["REPLY_TEST_CONNECTION"] = "reply.test.connection";
|
|
10
|
-
ReplyEventType["REPLY_S3_GET_OBJECT"] = "reply.s3.getObject";
|
|
11
|
-
ReplyEventType["REPLY_FILE_OUTPUT"] = "reply.file.output";
|
|
12
|
-
ReplyEventType["REPLY_AUTOMATION_CREATE"] = "reply.automation.create";
|
|
13
|
-
ReplyEventType["REPLY_AUTOMATION_DESTROY"] = "reply.automation.destroy";
|
|
14
|
-
})(ReplyEventType = exports.ReplyEventType || (exports.ReplyEventType = {}));
|
|
15
|
-
;
|
|
16
|
-
//# sourceMappingURL=ReplyEventType.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReplyEventType.js","sourceRoot":"","sources":["../../../../../../src/service/response/reply/types/ReplyEventType.ts"],"names":[],"mappings":";;;AAAA,IAAY,cASX;AATD,WAAY,cAAc;IACxB,6DAA2C,CAAA;IAC3C,uDAAqC,CAAA;IACrC,+DAA6C,CAAA;IAC7C,iEAA+C,CAAA;IAC/C,4DAA0C,CAAA;IAC1C,yDAAuC,CAAA;IACvC,qEAAmD,CAAA;IACnD,uEAAqD,CAAA;AACvD,CAAC,EATW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QASzB;AAAA,CAAC"}
|
|
File without changes
|
|
File without changes
|