@l-v-yonsama/multi-platform-database-drivers 0.1.13 → 0.1.16
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 +5 -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 +130 -105
- 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 +75 -65
- 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 +199 -179
- 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 +184 -162
- 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 +180 -160
- package/built/src/db/drivers/RedisDriver.js.map +1 -1
- package/built/src/db/drivers/index.js +8 -5
- package/built/src/db/drivers/index.js.map +1 -1
- package/built/src/db/index.js +6 -3
- package/built/src/db/index.js.map +1 -1
- package/built/src/db/resource/DbResource.d.ts +1 -5
- package/built/src/db/resource/DbResource.js +54 -43
- 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 +10 -5
- package/built/src/db/resource/MultipleResultSetDataHolder.js.map +1 -1
- package/built/src/db/resource/ResourceHelper.js +5 -1
- package/built/src/db/resource/ResourceHelper.js.map +1 -1
- package/built/src/db/resource/ResultSetDataHolder.d.ts +2 -2
- package/built/src/db/resource/ResultSetDataHolder.js +43 -33
- package/built/src/db/resource/ResultSetDataHolder.js.map +1 -1
- package/built/src/db/resource/index.js +8 -5
- package/built/src/db/resource/index.js.map +1 -1
- package/built/src/db/resource/types/DBType.js +6 -3
- package/built/src/db/resource/types/DBType.js.map +1 -1
- package/built/src/db/resource/types/GeneralColumnType.js +8 -5
- package/built/src/db/resource/types/GeneralColumnType.js.map +1 -1
- package/built/src/db/resource/types/MySQLColumnType.js +10 -7
- package/built/src/db/resource/types/MySQLColumnType.js.map +1 -1
- package/built/src/db/resource/types/ODBCVendorType.js +5 -2
- package/built/src/db/resource/types/ODBCVendorType.js.map +1 -1
- package/built/src/db/resource/types/PostgresColumnType.js +9 -6
- package/built/src/db/resource/types/PostgresColumnType.js.map +1 -1
- package/built/src/db/resource/types/RedisKeyType.js +8 -5
- package/built/src/db/resource/types/RedisKeyType.js.map +1 -1
- package/built/src/db/resource/types/ResourceType.js +5 -2
- package/built/src/db/resource/types/ResourceType.js.map +1 -1
- package/built/src/db/resource/types/index.js +10 -7
- package/built/src/db/resource/types/index.js.map +1 -1
- package/built/src/index.js +6 -3
- package/built/src/index.js.map +1 -1
- package/built/src/service/DBAccessService.d.ts +1 -2
- package/built/src/service/DBAccessService.js +271 -246
- package/built/src/service/DBAccessService.js.map +1 -1
- package/built/src/service/DBDriverResolver.d.ts +1 -2
- package/built/src/service/DBDriverResolver.js +31 -32
- package/built/src/service/DBDriverResolver.js.map +1 -1
- package/built/src/service/SQLService.d.ts +1 -1
- package/built/src/service/SQLService.js +8 -3
- package/built/src/service/SQLService.js.map +1 -1
- package/built/src/service/index.js +8 -5
- package/built/src/service/index.js.map +1 -1
- package/built/src/service/request/RedisRequest.d.ts +1 -1
- package/built/src/service/request/RedisRequest.js +5 -2
- package/built/src/service/request/RedisRequest.js.map +1 -1
- package/built/src/service/request/S3Request.js +5 -2
- package/built/src/service/request/S3Request.js.map +1 -1
- package/built/src/service/request/index.d.ts +2 -0
- package/built/src/service/request/index.js +8 -2
- package/built/src/service/request/index.js.map +1 -1
- package/built/src/service/response/GeneralDBResponse.js +2 -1
- package/built/src/service/response/GeneralResponse.js +5 -1
- package/built/src/service/response/GeneralResponse.js.map +1 -1
- package/built/src/service/response/index.d.ts +1 -0
- package/built/src/service/response/index.js +6 -2
- package/built/src/service/response/index.js.map +1 -1
- package/built/src/service/response/result/ConnectionResult.js +3 -0
- 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/result/GeneralResult.js +13 -0
- 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/result/ProgressResult.js +14 -0
- 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/built/src/types/DateModifiedType.js +6 -3
- package/built/src/types/DateModifiedType.js.map +1 -1
- package/built/src/types/FileKindType.js +6 -3
- package/built/src/types/FileKindType.js.map +1 -1
- package/built/src/types/index.js +5 -2
- package/built/src/types/index.js.map +1 -1
- package/package.json +3 -4
- package/built/src/service/response/reply/ConnectionResult.js +0 -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 -14
- 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 -25
- package/built/src/service/response/reply/FileProcessResult.js.map +0 -1
- package/built/src/service/response/reply/GeneralReply.js +0 -9
- 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 -13
- package/built/src/service/response/reply/OutputReply.js.map +0 -1
- package/built/src/service/response/reply/ProgressReply.js +0 -10
- 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 -6
- 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 -13
- 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 -13
- package/built/src/service/response/reply/types/ReplyEventType.js.map +0 -1
- /package/built/src/service/response/{reply → result}/ConnectionResult.d.ts +0 -0
|
@@ -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,13 +0,0 @@
|
|
|
1
|
-
import ShortUniqueId from 'short-unique-id';
|
|
2
|
-
import GeneralReply from './GeneralReply';
|
|
3
|
-
const uid = new ShortUniqueId();
|
|
4
|
-
export default class OutputReply extends GeneralReply {
|
|
5
|
-
constructor(output_type, label, content) {
|
|
6
|
-
super(true, '');
|
|
7
|
-
this.output_type = output_type;
|
|
8
|
-
this.request_id = uid.randomUUID(6);
|
|
9
|
-
this.label = label;
|
|
10
|
-
this.content = content;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=OutputReply.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OutputReply.js","sourceRoot":"","sources":["../../../../../src/service/response/reply/OutputReply.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAE1C,MAAM,GAAG,GAAG,IAAI,aAAa,EAAE,CAAC;AAEhC,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,YAAY;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"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import GeneralReply from './GeneralReply';
|
|
2
|
-
export default class ProgressReply extends GeneralReply {
|
|
3
|
-
constructor(source, message, progress, options) {
|
|
4
|
-
super(true, message);
|
|
5
|
-
this.source = source;
|
|
6
|
-
this.progress = progress;
|
|
7
|
-
this.options = options;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=ProgressReply.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressReply.js","sourceRoot":"","sources":["../../../../../src/service/response/reply/ProgressReply.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,YAAY;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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FileExportType.js","sourceRoot":"","sources":["../../../../../../src/service/response/reply/types/FileExportType.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,cAEX;AAFD,WAAY,cAAc;IACxB,iCAAe,CAAA;AACjB,CAAC,EAFW,cAAc,KAAd,cAAc,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,13 +0,0 @@
|
|
|
1
|
-
export var OutputType;
|
|
2
|
-
(function (OutputType) {
|
|
3
|
-
OutputType["Log"] = "output.Log";
|
|
4
|
-
OutputType["SqlHistory"] = "output.SqlHistory";
|
|
5
|
-
OutputType["SingleResultSet"] = "output.SingleResultSet";
|
|
6
|
-
OutputType["CountTableRowsResult"] = "output.CountTableRowsResult";
|
|
7
|
-
OutputType["MultipleResultSet"] = "output.MultipleResultSet";
|
|
8
|
-
OutputType["RedisCommandResultSet"] = "output.RedisCommandResultSet";
|
|
9
|
-
OutputType["S3ContantFilePath"] = "output.S3ContantFilePath";
|
|
10
|
-
OutputType["IndexedDBKeyWithValue"] = "output.IndexedDBKeyWithValue";
|
|
11
|
-
OutputType["RestResponse"] = "output.RestResponse";
|
|
12
|
-
})(OutputType || (OutputType = {}));
|
|
13
|
-
//# 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,MAAM,CAAN,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,KAAV,UAAU,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,13 +0,0 @@
|
|
|
1
|
-
export var ReplyEventType;
|
|
2
|
-
(function (ReplyEventType) {
|
|
3
|
-
ReplyEventType["REPLY_RESOURCE_LIST"] = "reply.resource.list";
|
|
4
|
-
ReplyEventType["REPLY_SQL_OUTPUT"] = "reply.sql.output";
|
|
5
|
-
ReplyEventType["REPLY_TOGGLE_CONNECT"] = "reply.toggle.connect";
|
|
6
|
-
ReplyEventType["REPLY_TEST_CONNECTION"] = "reply.test.connection";
|
|
7
|
-
ReplyEventType["REPLY_S3_GET_OBJECT"] = "reply.s3.getObject";
|
|
8
|
-
ReplyEventType["REPLY_FILE_OUTPUT"] = "reply.file.output";
|
|
9
|
-
ReplyEventType["REPLY_AUTOMATION_CREATE"] = "reply.automation.create";
|
|
10
|
-
ReplyEventType["REPLY_AUTOMATION_DESTROY"] = "reply.automation.destroy";
|
|
11
|
-
})(ReplyEventType || (ReplyEventType = {}));
|
|
12
|
-
;
|
|
13
|
-
//# 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,MAAM,CAAN,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,KAAd,cAAc,QASzB;AAAA,CAAC"}
|
|
File without changes
|