@l-v-yonsama/multi-platform-database-drivers 0.1.57 → 0.1.88

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.
Files changed (134) hide show
  1. package/built/src/drivers/AwsDriver.d.ts +5 -6
  2. package/built/src/drivers/AwsDriver.js +10 -11
  3. package/built/src/drivers/AwsDriver.js.map +1 -1
  4. package/built/src/drivers/BaseDriver.d.ts +9 -13
  5. package/built/src/drivers/BaseDriver.js +42 -2
  6. package/built/src/drivers/BaseDriver.js.map +1 -1
  7. package/built/src/drivers/DBDriverResolver.d.ts +1 -1
  8. package/built/src/drivers/DBDriverResolver.js +1 -2
  9. package/built/src/drivers/DBDriverResolver.js.map +1 -1
  10. package/built/src/drivers/MySQLDriver.d.ts +4 -4
  11. package/built/src/drivers/MySQLDriver.js +32 -16
  12. package/built/src/drivers/MySQLDriver.js.map +1 -1
  13. package/built/src/drivers/PostgresDriver.d.ts +4 -4
  14. package/built/src/drivers/PostgresDriver.js +33 -23
  15. package/built/src/drivers/PostgresDriver.js.map +1 -1
  16. package/built/src/drivers/RDSBaseDriver.d.ts +8 -9
  17. package/built/src/drivers/RDSBaseDriver.js +24 -22
  18. package/built/src/drivers/RDSBaseDriver.js.map +1 -1
  19. package/built/src/drivers/RedisDriver.d.ts +5 -5
  20. package/built/src/drivers/RedisDriver.js +10 -6
  21. package/built/src/drivers/RedisDriver.js.map +1 -1
  22. package/built/src/drivers/aws/AwsCloudwatchServiceClient.d.ts +3 -3
  23. package/built/src/drivers/aws/AwsCloudwatchServiceClient.js +26 -6
  24. package/built/src/drivers/aws/AwsCloudwatchServiceClient.js.map +1 -1
  25. package/built/src/drivers/aws/AwsS3ServiceClient.d.ts +3 -3
  26. package/built/src/drivers/aws/AwsS3ServiceClient.js +7 -8
  27. package/built/src/drivers/aws/AwsS3ServiceClient.js.map +1 -1
  28. package/built/src/drivers/aws/AwsSQSServiceClient.d.ts +3 -4
  29. package/built/src/drivers/aws/AwsSQSServiceClient.js +12 -7
  30. package/built/src/drivers/aws/AwsSQSServiceClient.js.map +1 -1
  31. package/built/src/drivers/aws/AwsServiceClient.d.ts +3 -3
  32. package/built/src/drivers/aws/AwsServiceClient.js.map +1 -1
  33. package/built/src/helpers/ResourceHelper.d.ts +1 -0
  34. package/built/src/helpers/ResourceHelper.js +15 -3
  35. package/built/src/helpers/ResourceHelper.js.map +1 -1
  36. package/built/src/helpers/SQLHelper.d.ts +22 -0
  37. package/built/src/helpers/SQLHelper.js +175 -1
  38. package/built/src/helpers/SQLHelper.js.map +1 -1
  39. package/built/src/resource/DbResource.d.ts +4 -50
  40. package/built/src/resource/DbResource.js +1 -2
  41. package/built/src/resource/DbResource.js.map +1 -1
  42. package/built/src/resource/GeneralColumnUtil.d.ts +12 -0
  43. package/built/src/resource/GeneralColumnUtil.js +207 -0
  44. package/built/src/resource/GeneralColumnUtil.js.map +1 -0
  45. package/built/src/resource/ResultSetDataHolder.d.ts +28 -18
  46. package/built/src/resource/ResultSetDataHolder.js +198 -117
  47. package/built/src/resource/ResultSetDataHolder.js.map +1 -1
  48. package/built/src/resource/index.d.ts +1 -0
  49. package/built/src/resource/index.js +1 -0
  50. package/built/src/resource/index.js.map +1 -1
  51. package/built/src/types/drivers/GeneralResult.js.map +1 -0
  52. package/built/src/types/drivers/QueryConditions.d.ts +4 -0
  53. package/built/src/types/drivers/QueryConditions.js +3 -0
  54. package/built/src/types/drivers/QueryConditions.js.map +1 -0
  55. package/built/src/types/drivers/QueryParams.d.ts +7 -0
  56. package/built/src/types/drivers/QueryParams.js +3 -0
  57. package/built/src/types/drivers/QueryParams.js.map +1 -0
  58. package/built/src/types/{ScanParams.d.ts → drivers/ScanParams.d.ts} +1 -1
  59. package/built/src/types/drivers/ScanParams.js.map +1 -0
  60. package/built/src/types/drivers/index.d.ts +4 -0
  61. package/built/src/types/drivers/index.js +8 -0
  62. package/built/src/types/drivers/index.js.map +1 -0
  63. package/built/src/types/index.d.ts +1 -11
  64. package/built/src/types/index.js +1 -11
  65. package/built/src/types/index.js.map +1 -1
  66. package/built/src/types/resource/AwsRegion.js.map +1 -0
  67. package/built/src/types/resource/AwsSQSAttributes.js.map +1 -0
  68. package/built/src/types/resource/AwsServiceType.js.map +1 -0
  69. package/built/src/types/resource/AwsSupplyCredentialType.js.map +1 -0
  70. package/built/src/types/resource/CompareKey.js.map +1 -0
  71. package/built/src/types/resource/ConnectionSetting.d.ts +47 -0
  72. package/built/src/types/resource/ConnectionSetting.js +3 -0
  73. package/built/src/types/resource/ConnectionSetting.js.map +1 -0
  74. package/built/src/types/resource/DBType.js.map +1 -0
  75. package/built/src/types/{GeneralColumnType.d.ts → resource/GeneralColumnType.d.ts} +0 -13
  76. package/built/src/types/resource/GeneralColumnType.js +74 -0
  77. package/built/src/types/resource/GeneralColumnType.js.map +1 -0
  78. package/built/src/types/resource/MySQLColumnType.js.map +1 -0
  79. package/built/src/types/resource/PostgresColumnType.js.map +1 -0
  80. package/built/src/types/resource/RedisKeyType.js.map +1 -0
  81. package/built/src/types/resource/ResourceType.js.map +1 -0
  82. package/built/src/types/resource/ResultSetHelperMetadata.d.ts +8 -0
  83. package/built/src/types/resource/ResultSetHelperMetadata.js +3 -0
  84. package/built/src/types/resource/ResultSetHelperMetadata.js.map +1 -0
  85. package/built/src/types/resource/index.d.ts +11 -0
  86. package/built/src/types/resource/index.js +11 -0
  87. package/built/src/types/resource/index.js.map +1 -1
  88. package/built/src/util.d.ts +3 -1
  89. package/built/src/util.js +9 -1
  90. package/built/src/util.js.map +1 -1
  91. package/package.json +2 -3
  92. package/built/src/examples/example.d.ts +0 -1
  93. package/built/src/examples/example.js +0 -38
  94. package/built/src/examples/example.js.map +0 -1
  95. package/built/src/examples/parser.d.ts +0 -1
  96. package/built/src/examples/parser.js +0 -27
  97. package/built/src/examples/parser.js.map +0 -1
  98. package/built/src/types/AwsRegion.js.map +0 -1
  99. package/built/src/types/AwsSQSAttributes.js.map +0 -1
  100. package/built/src/types/AwsServiceType.js.map +0 -1
  101. package/built/src/types/AwsSupplyCredentialType.js.map +0 -1
  102. package/built/src/types/CompareKey.js.map +0 -1
  103. package/built/src/types/DBType.js.map +0 -1
  104. package/built/src/types/GeneralColumnType.js +0 -365
  105. package/built/src/types/GeneralColumnType.js.map +0 -1
  106. package/built/src/types/GeneralResult.js.map +0 -1
  107. package/built/src/types/MySQLColumnType.js.map +0 -1
  108. package/built/src/types/PostgresColumnType.js.map +0 -1
  109. package/built/src/types/RedisKeyType.js.map +0 -1
  110. package/built/src/types/ResourceType.js.map +0 -1
  111. package/built/src/types/ScanParams.js.map +0 -1
  112. /package/built/src/types/{GeneralResult.d.ts → drivers/GeneralResult.d.ts} +0 -0
  113. /package/built/src/types/{GeneralResult.js → drivers/GeneralResult.js} +0 -0
  114. /package/built/src/types/{ScanParams.js → drivers/ScanParams.js} +0 -0
  115. /package/built/src/types/{AwsRegion.d.ts → resource/AwsRegion.d.ts} +0 -0
  116. /package/built/src/types/{AwsRegion.js → resource/AwsRegion.js} +0 -0
  117. /package/built/src/types/{AwsSQSAttributes.d.ts → resource/AwsSQSAttributes.d.ts} +0 -0
  118. /package/built/src/types/{AwsSQSAttributes.js → resource/AwsSQSAttributes.js} +0 -0
  119. /package/built/src/types/{AwsServiceType.d.ts → resource/AwsServiceType.d.ts} +0 -0
  120. /package/built/src/types/{AwsServiceType.js → resource/AwsServiceType.js} +0 -0
  121. /package/built/src/types/{AwsSupplyCredentialType.d.ts → resource/AwsSupplyCredentialType.d.ts} +0 -0
  122. /package/built/src/types/{AwsSupplyCredentialType.js → resource/AwsSupplyCredentialType.js} +0 -0
  123. /package/built/src/types/{CompareKey.d.ts → resource/CompareKey.d.ts} +0 -0
  124. /package/built/src/types/{CompareKey.js → resource/CompareKey.js} +0 -0
  125. /package/built/src/types/{DBType.d.ts → resource/DBType.d.ts} +0 -0
  126. /package/built/src/types/{DBType.js → resource/DBType.js} +0 -0
  127. /package/built/src/types/{MySQLColumnType.d.ts → resource/MySQLColumnType.d.ts} +0 -0
  128. /package/built/src/types/{MySQLColumnType.js → resource/MySQLColumnType.js} +0 -0
  129. /package/built/src/types/{PostgresColumnType.d.ts → resource/PostgresColumnType.d.ts} +0 -0
  130. /package/built/src/types/{PostgresColumnType.js → resource/PostgresColumnType.js} +0 -0
  131. /package/built/src/types/{RedisKeyType.d.ts → resource/RedisKeyType.d.ts} +0 -0
  132. /package/built/src/types/{RedisKeyType.js → resource/RedisKeyType.js} +0 -0
  133. /package/built/src/types/{ResourceType.d.ts → resource/ResourceType.d.ts} +0 -0
  134. /package/built/src/types/{ResourceType.js → resource/ResourceType.js} +0 -0
@@ -0,0 +1,4 @@
1
+ export type QueryConditions = {
2
+ binds?: string[];
3
+ maxRows?: number;
4
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=QueryConditions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryConditions.js","sourceRoot":"","sources":["../../../../src/types/drivers/QueryConditions.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { RdhMeta } from '../resource';
2
+ import { QueryConditions } from './QueryConditions';
3
+ export type QueryParams = {
4
+ sql: string;
5
+ conditions?: QueryConditions;
6
+ meta?: RdhMeta;
7
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=QueryParams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryParams.js","sourceRoot":"","sources":["../../../../src/types/drivers/QueryParams.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- import { ResourceType } from './ResourceType';
1
+ import { ResourceType } from '../resource';
2
2
  export type ScanParams = {
3
3
  target: string;
4
4
  parentTarget?: string;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScanParams.js","sourceRoot":"","sources":["../../../../src/types/drivers/ScanParams.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export * from './GeneralResult';
2
+ export * from './QueryConditions';
3
+ export * from './QueryParams';
4
+ export * from './ScanParams';
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./GeneralResult"), exports);
5
+ tslib_1.__exportStar(require("./QueryConditions"), exports);
6
+ tslib_1.__exportStar(require("./QueryParams"), exports);
7
+ tslib_1.__exportStar(require("./ScanParams"), exports);
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/drivers/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgC;AAChC,4DAAkC;AAClC,wDAA8B;AAC9B,uDAA6B"}
@@ -1,12 +1,2 @@
1
1
  export * from './resource';
2
- export * from './AwsRegion';
3
- export * from './AwsSQSAttributes';
4
- export * from './AwsServiceType';
5
- export * from './AwsSupplyCredentialType';
6
- export * from './DBType';
7
- export * from './GeneralResult';
8
- export * from './GeneralColumnType';
9
- export * from './RedisKeyType';
10
- export * from './ResourceType';
11
- export * from './ScanParams';
12
- export * from './CompareKey';
2
+ export * from './drivers';
@@ -2,15 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./resource"), exports);
5
- tslib_1.__exportStar(require("./AwsRegion"), exports);
6
- tslib_1.__exportStar(require("./AwsSQSAttributes"), exports);
7
- tslib_1.__exportStar(require("./AwsServiceType"), exports);
8
- tslib_1.__exportStar(require("./AwsSupplyCredentialType"), exports);
9
- tslib_1.__exportStar(require("./DBType"), exports);
10
- tslib_1.__exportStar(require("./GeneralResult"), exports);
11
- tslib_1.__exportStar(require("./GeneralColumnType"), exports);
12
- tslib_1.__exportStar(require("./RedisKeyType"), exports);
13
- tslib_1.__exportStar(require("./ResourceType"), exports);
14
- tslib_1.__exportStar(require("./ScanParams"), exports);
15
- tslib_1.__exportStar(require("./CompareKey"), exports);
5
+ tslib_1.__exportStar(require("./drivers"), exports);
16
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":";;;AAAA,qDAA2B;AAC3B,sDAA4B;AAC5B,6DAAmC;AACnC,2DAAiC;AACjC,oEAA0C;AAC1C,mDAAyB;AACzB,0DAAgC;AAChC,8DAAoC;AACpC,yDAA+B;AAC/B,yDAA+B;AAC/B,uDAA6B;AAC7B,uDAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":";;;AAAA,qDAA2B;AAC3B,oDAA0B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AwsRegion.js","sourceRoot":"","sources":["../../../../src/types/resource/AwsRegion.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG;IACvB,QAAQ,EAAE,YAAY;IAEtB,OAAO,EAAE,WAAW;IAEpB,QAAQ,EAAE,YAAY;IACtB,QAAQ,EAAE,YAAY;IAEtB,YAAY,EAAE,gBAAgB;IAC9B,YAAY,EAAE,gBAAgB;IAC9B,YAAY,EAAE,gBAAgB;IAE9B,YAAY,EAAE,gBAAgB;IAC9B,YAAY,EAAE,gBAAgB;IAC9B,YAAY,EAAE,gBAAgB;IAC9B,YAAY,EAAE,gBAAgB;IAE9B,UAAU,EAAE,cAAc;IAE1B,UAAU,EAAE,cAAc;IAC1B,UAAU,EAAE,cAAc;IAE1B,QAAQ,EAAE,YAAY;IAEtB,OAAO,EAAE,WAAW;IACpB,OAAO,EAAE,WAAW;IAEpB,QAAQ,EAAE,YAAY;IACtB,QAAQ,EAAE,YAAY;IAEtB,OAAO,EAAE,WAAW;IAEpB,UAAU,EAAE,cAAc;IAC1B,QAAQ,EAAE,YAAY;IAEtB,OAAO,EAAE,WAAW;IAEpB,OAAO,EAAE,WAAW;IACpB,OAAO,EAAE,WAAW;IAEpB,OAAO,EAAE,WAAW;IACpB,OAAO,EAAE,WAAW;CACZ,CAAC;AAGE,QAAA,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,iBAAS,CAAC,CAAC,IAAI,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AwsSQSAttributes.js","sourceRoot":"","sources":["../../../../src/types/resource/AwsSQSAttributes.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AwsServiceType.js","sourceRoot":"","sources":["../../../../src/types/resource/AwsServiceType.ts"],"names":[],"mappings":";;;AAAa,QAAA,cAAc,GAAG;IAC5B,EAAE,EAAE,IAAI;IACR,GAAG,EAAE,KAAK;IACV,UAAU,EAAE,YAAY;CAChB,CAAC;AAIE,QAAA,oBAAoB,GAAG,MAAM,CAAC,MAAM,CAAC,sBAAc,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AwsSupplyCredentialType.js","sourceRoot":"","sources":["../../../../src/types/resource/AwsSupplyCredentialType.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG;IAKlC,qBAAqB,EAAE,yBAAyB;IAMhD,oBAAoB,EAAE,uBAAuB;IAC7C,kBAAkB,EAAE,sBAAsB;CAClC,CAAC;AAIE,QAAA,oBAAoB,GAAG,MAAM,CAAC,MAAM,CAAC,4BAAoB,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CompareKey.js","sourceRoot":"","sources":["../../../../src/types/resource/CompareKey.ts"],"names":[],"mappings":""}
@@ -0,0 +1,47 @@
1
+ import { AwsServiceType } from './AwsServiceType';
2
+ import { SupplyCredentialType } from './AwsSupplyCredentialType';
3
+ import { DBType } from './DBType';
4
+ export type SshSetting = {
5
+ use: boolean;
6
+ authMethod: string;
7
+ username: string;
8
+ password?: string;
9
+ host: string;
10
+ port: number;
11
+ privateKeyPath?: string;
12
+ privateKey?: string;
13
+ passphrase?: string;
14
+ dstPort: number;
15
+ dstHost: string;
16
+ };
17
+ export type AwsSetting = {
18
+ supplyCredentialType: SupplyCredentialType;
19
+ profile?: string;
20
+ region?: string;
21
+ services: AwsServiceType[];
22
+ s3ForcePathStyle?: boolean;
23
+ };
24
+ export type FirebaseSetting = {
25
+ authMethod: string;
26
+ projectid?: string;
27
+ privateKey?: string;
28
+ clientEmail?: string;
29
+ serviceAccountCredentialsPath?: string;
30
+ };
31
+ export type ConnectionSetting = {
32
+ id?: string;
33
+ dbType: DBType;
34
+ name: string;
35
+ url?: string;
36
+ host?: string;
37
+ port?: number;
38
+ user?: string;
39
+ password?: string;
40
+ database?: string;
41
+ databaseVersion?: number;
42
+ ds?: string;
43
+ apiVersion?: string;
44
+ ssh?: SshSetting;
45
+ awsSetting?: AwsSetting;
46
+ firebase?: FirebaseSetting;
47
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ConnectionSetting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConnectionSetting.js","sourceRoot":"","sources":["../../../../src/types/resource/ConnectionSetting.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DBType.js","sourceRoot":"","sources":["../../../../src/types/resource/DBType.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG;IACpB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;CACF,CAAC;AAIE,QAAA,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,cAAM,CAAC,CAAC;AAE3C,MAAM,KAAK,GAAG,CAAC,MAAc,EAAW,EAAE,CAAC,cAAM,CAAC,GAAG,KAAK,MAAM,CAAC;AAA3D,QAAA,KAAK,SAAsD;AAEjE,MAAM,SAAS,GAAG,CAAC,MAAc,EAAW,EAAE;IACnD,QAAQ,MAAM,EAAE;QACd,KAAK,cAAM,CAAC,KAAK,CAAC;QAClB,KAAK,cAAM,CAAC,QAAQ;YAClB,OAAO,IAAI,CAAC;KACf;IACD,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAPW,QAAA,SAAS,aAOpB"}
@@ -67,16 +67,3 @@ export declare enum GeneralColumnType {
67
67
  OBJECT = 65,
68
68
  UNKNOWN = -1
69
69
  }
70
- export declare namespace GeneralColumnType {
71
- function parse(s: string | null | undefined): GeneralColumnType;
72
- function isNumericLike(type: GeneralColumnType): boolean;
73
- function isTextLike(type: GeneralColumnType): boolean;
74
- function isBinaryLike(type: GeneralColumnType): boolean;
75
- function isDateOrTimeLike(type: GeneralColumnType): boolean;
76
- function isJsonLike(type: GeneralColumnType): boolean;
77
- function isBooleanLike(type: GeneralColumnType): boolean;
78
- function isEnumOrSet(type: GeneralColumnType): boolean;
79
- function isArray(type: GeneralColumnType): boolean;
80
- function parseHandsonType(type: GeneralColumnType): string;
81
- function parseFaIconType(type: GeneralColumnType): string;
82
- }
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GeneralColumnType = void 0;
4
+ var GeneralColumnType;
5
+ (function (GeneralColumnType) {
6
+ GeneralColumnType[GeneralColumnType["BIT"] = 0] = "BIT";
7
+ GeneralColumnType[GeneralColumnType["VARBIT"] = 1] = "VARBIT";
8
+ GeneralColumnType[GeneralColumnType["BOOLEAN"] = 2] = "BOOLEAN";
9
+ GeneralColumnType[GeneralColumnType["CHAR"] = 3] = "CHAR";
10
+ GeneralColumnType[GeneralColumnType["VARCHAR"] = 4] = "VARCHAR";
11
+ GeneralColumnType[GeneralColumnType["TINYTEXT"] = 5] = "TINYTEXT";
12
+ GeneralColumnType[GeneralColumnType["MEDIUMTEXT"] = 6] = "MEDIUMTEXT";
13
+ GeneralColumnType[GeneralColumnType["TEXT"] = 7] = "TEXT";
14
+ GeneralColumnType[GeneralColumnType["LONGTEXT"] = 8] = "LONGTEXT";
15
+ GeneralColumnType[GeneralColumnType["CLOB"] = 9] = "CLOB";
16
+ GeneralColumnType[GeneralColumnType["INET"] = 10] = "INET";
17
+ GeneralColumnType[GeneralColumnType["TINYINT"] = 11] = "TINYINT";
18
+ GeneralColumnType[GeneralColumnType["SMALLINT"] = 12] = "SMALLINT";
19
+ GeneralColumnType[GeneralColumnType["MEDIUMINT"] = 13] = "MEDIUMINT";
20
+ GeneralColumnType[GeneralColumnType["INTEGER"] = 14] = "INTEGER";
21
+ GeneralColumnType[GeneralColumnType["BIGINT"] = 15] = "BIGINT";
22
+ GeneralColumnType[GeneralColumnType["DECIMAL"] = 16] = "DECIMAL";
23
+ GeneralColumnType[GeneralColumnType["LONG"] = 17] = "LONG";
24
+ GeneralColumnType[GeneralColumnType["LONGLONG"] = 18] = "LONGLONG";
25
+ GeneralColumnType[GeneralColumnType["NUMERIC"] = 19] = "NUMERIC";
26
+ GeneralColumnType[GeneralColumnType["FLOAT"] = 20] = "FLOAT";
27
+ GeneralColumnType[GeneralColumnType["DOUBLE_PRECISION"] = 21] = "DOUBLE_PRECISION";
28
+ GeneralColumnType[GeneralColumnType["REAL"] = 22] = "REAL";
29
+ GeneralColumnType[GeneralColumnType["SERIAL"] = 23] = "SERIAL";
30
+ GeneralColumnType[GeneralColumnType["MONEY"] = 24] = "MONEY";
31
+ GeneralColumnType[GeneralColumnType["JSON"] = 25] = "JSON";
32
+ GeneralColumnType[GeneralColumnType["JSONB"] = 26] = "JSONB";
33
+ GeneralColumnType[GeneralColumnType["LINE"] = 27] = "LINE";
34
+ GeneralColumnType[GeneralColumnType["LSEG"] = 28] = "LSEG";
35
+ GeneralColumnType[GeneralColumnType["MACADDR"] = 29] = "MACADDR";
36
+ GeneralColumnType[GeneralColumnType["PATH"] = 30] = "PATH";
37
+ GeneralColumnType[GeneralColumnType["PG_LSN"] = 31] = "PG_LSN";
38
+ GeneralColumnType[GeneralColumnType["POINT"] = 32] = "POINT";
39
+ GeneralColumnType[GeneralColumnType["POLYGON"] = 33] = "POLYGON";
40
+ GeneralColumnType[GeneralColumnType["TIME"] = 34] = "TIME";
41
+ GeneralColumnType[GeneralColumnType["TIME_WITH_TIME_ZONE"] = 35] = "TIME_WITH_TIME_ZONE";
42
+ GeneralColumnType[GeneralColumnType["DATE"] = 36] = "DATE";
43
+ GeneralColumnType[GeneralColumnType["TIMESTAMP"] = 37] = "TIMESTAMP";
44
+ GeneralColumnType[GeneralColumnType["TIMESTAMP_WITH_TIME_ZONE"] = 38] = "TIMESTAMP_WITH_TIME_ZONE";
45
+ GeneralColumnType[GeneralColumnType["YEAR"] = 39] = "YEAR";
46
+ GeneralColumnType[GeneralColumnType["ENUM"] = 40] = "ENUM";
47
+ GeneralColumnType[GeneralColumnType["SET"] = 41] = "SET";
48
+ GeneralColumnType[GeneralColumnType["TSQUERY"] = 42] = "TSQUERY";
49
+ GeneralColumnType[GeneralColumnType["TSVECTOR"] = 43] = "TSVECTOR";
50
+ GeneralColumnType[GeneralColumnType["TXID_SNAPSHOT"] = 44] = "TXID_SNAPSHOT";
51
+ GeneralColumnType[GeneralColumnType["UUID"] = 45] = "UUID";
52
+ GeneralColumnType[GeneralColumnType["CIDR"] = 46] = "CIDR";
53
+ GeneralColumnType[GeneralColumnType["CIRCLE"] = 47] = "CIRCLE";
54
+ GeneralColumnType[GeneralColumnType["BOX"] = 48] = "BOX";
55
+ GeneralColumnType[GeneralColumnType["BYTEA"] = 49] = "BYTEA";
56
+ GeneralColumnType[GeneralColumnType["BINARY"] = 50] = "BINARY";
57
+ GeneralColumnType[GeneralColumnType["BLOB"] = 51] = "BLOB";
58
+ GeneralColumnType[GeneralColumnType["MEDIUMBLOB"] = 52] = "MEDIUMBLOB";
59
+ GeneralColumnType[GeneralColumnType["LONGBLOB"] = 53] = "LONGBLOB";
60
+ GeneralColumnType[GeneralColumnType["XML"] = 54] = "XML";
61
+ GeneralColumnType[GeneralColumnType["NAME"] = 55] = "NAME";
62
+ GeneralColumnType[GeneralColumnType["ARRAY"] = 56] = "ARRAY";
63
+ GeneralColumnType[GeneralColumnType["XID"] = 57] = "XID";
64
+ GeneralColumnType[GeneralColumnType["INTERVAL"] = 58] = "INTERVAL";
65
+ GeneralColumnType[GeneralColumnType["OID"] = 59] = "OID";
66
+ GeneralColumnType[GeneralColumnType["REGTYPE"] = 60] = "REGTYPE";
67
+ GeneralColumnType[GeneralColumnType["REGPROC"] = 61] = "REGPROC";
68
+ GeneralColumnType[GeneralColumnType["PG_NODE_TREE"] = 62] = "PG_NODE_TREE";
69
+ GeneralColumnType[GeneralColumnType["PG_NDISTINCT"] = 63] = "PG_NDISTINCT";
70
+ GeneralColumnType[GeneralColumnType["PG_DEPENDENCIES"] = 64] = "PG_DEPENDENCIES";
71
+ GeneralColumnType[GeneralColumnType["OBJECT"] = 65] = "OBJECT";
72
+ GeneralColumnType[GeneralColumnType["UNKNOWN"] = -1] = "UNKNOWN";
73
+ })(GeneralColumnType = exports.GeneralColumnType || (exports.GeneralColumnType = {}));
74
+ //# sourceMappingURL=GeneralColumnType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GeneralColumnType.js","sourceRoot":"","sources":["../../../../src/types/resource/GeneralColumnType.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAoEX;AApED,WAAY,iBAAiB;IAC3B,uDAAG,CAAA;IACH,6DAAM,CAAA;IACN,+DAAO,CAAA;IACP,yDAAI,CAAA;IACJ,+DAAO,CAAA;IACP,iEAAQ,CAAA;IACR,qEAAU,CAAA;IACV,yDAAI,CAAA;IACJ,iEAAQ,CAAA;IACR,yDAAI,CAAA;IACJ,0DAAI,CAAA;IACJ,gEAAO,CAAA;IACP,kEAAQ,CAAA;IACR,oEAAS,CAAA;IACT,gEAAO,CAAA;IACP,8DAAM,CAAA;IACN,gEAAO,CAAA;IACP,0DAAI,CAAA;IACJ,kEAAQ,CAAA;IACR,gEAAO,CAAA;IACP,4DAAK,CAAA;IACL,kFAAgB,CAAA;IAChB,0DAAI,CAAA;IACJ,8DAAM,CAAA;IACN,4DAAK,CAAA;IACL,0DAAI,CAAA;IACJ,4DAAK,CAAA;IACL,0DAAI,CAAA;IACJ,0DAAI,CAAA;IACJ,gEAAO,CAAA;IACP,0DAAI,CAAA;IACJ,8DAAM,CAAA;IACN,4DAAK,CAAA;IACL,gEAAO,CAAA;IACP,0DAAI,CAAA;IACJ,wFAAmB,CAAA;IACnB,0DAAI,CAAA;IACJ,oEAAS,CAAA;IACT,kGAAwB,CAAA;IACxB,0DAAI,CAAA;IACJ,0DAAI,CAAA;IACJ,wDAAG,CAAA;IACH,gEAAO,CAAA;IACP,kEAAQ,CAAA;IACR,4EAAa,CAAA;IACb,0DAAI,CAAA;IACJ,0DAAI,CAAA;IACJ,8DAAM,CAAA;IACN,wDAAG,CAAA;IACH,4DAAK,CAAA;IACL,8DAAM,CAAA;IACN,0DAAI,CAAA;IACJ,sEAAU,CAAA;IACV,kEAAQ,CAAA;IACR,wDAAG,CAAA;IACH,0DAAI,CAAA;IACJ,4DAAK,CAAA;IACL,wDAAG,CAAA;IACH,kEAAQ,CAAA;IACR,wDAAG,CAAA;IACH,gEAAO,CAAA;IACP,gEAAO,CAAA;IACP,0EAAY,CAAA;IACZ,0EAAY,CAAA;IACZ,gFAAe,CAAA;IACf,8DAAM,CAAA;IACN,gEAAY,CAAA;AACd,CAAC,EApEW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAoE5B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MySQLColumnType.js","sourceRoot":"","sources":["../../../../src/types/resource/MySQLColumnType.ts"],"names":[],"mappings":";;;AAAA,6CAAyC;AAGzC,IAAY,eAwCX;AAxCD,WAAY,eAAe;IACzB,2DAAc,CAAA;IACd,2DAAc,CAAA;IACd,6DAAe,CAAA;IACf,2DAAW,CAAA;IACX,uDAAY,CAAA;IACZ,qDAAW,CAAA;IACX,qDAAW,CAAA;IACX,+DAAgB,CAAA;IAChB,yDAAa,CAAA;IACb,+DAAgB,CAAA;IAChB,sDAAW,CAAA;IACX,sDA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,CAAC;IACpC,CAAC;IAtCe,wBAAK,QAsCpB,CAAA;AACH,CAAC,EAxCgB,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAwClC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RedisKeyType.js","sourceRoot":"","sources":["../../../../src/types/resource/RedisKeyType.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG;IAC1B,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;CACV,CAAC;AAGE,QAAA,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC,oBAAY,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResourceType.js","sourceRoot":"","sources":["../../../../src/types/resource/ResourceType.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG;IAC1B,UAAU,EAAE,YAAY;IACxB,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,aAAa;IAC1B,aAAa,EAAE,eAAe;IAC9B,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,GAAG,EAAE,KAAK;IACV,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;CACd,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { CompareKey } from './CompareKey';
2
+ export type RdhMeta = {
3
+ connectionName?: string;
4
+ tableName?: string;
5
+ compareKeys?: CompareKey[];
6
+ type?: string;
7
+ [key: string]: any;
8
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ResultSetHelperMetadata.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResultSetHelperMetadata.js","sourceRoot":"","sources":["../../../../src/types/resource/ResultSetHelperMetadata.ts"],"names":[],"mappings":""}
@@ -1 +1,12 @@
1
1
  export * from './Annonations';
2
+ export * from './AwsRegion';
3
+ export * from './AwsSQSAttributes';
4
+ export * from './AwsServiceType';
5
+ export * from './AwsSupplyCredentialType';
6
+ export * from './CompareKey';
7
+ export * from './ConnectionSetting';
8
+ export * from './DBType';
9
+ export * from './GeneralColumnType';
10
+ export * from './ResultSetHelperMetadata';
11
+ export * from './RedisKeyType';
12
+ export * from './ResourceType';
@@ -2,4 +2,15 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./Annonations"), exports);
5
+ tslib_1.__exportStar(require("./AwsRegion"), exports);
6
+ tslib_1.__exportStar(require("./AwsSQSAttributes"), exports);
7
+ tslib_1.__exportStar(require("./AwsServiceType"), exports);
8
+ tslib_1.__exportStar(require("./AwsSupplyCredentialType"), exports);
9
+ tslib_1.__exportStar(require("./CompareKey"), exports);
10
+ tslib_1.__exportStar(require("./ConnectionSetting"), exports);
11
+ tslib_1.__exportStar(require("./DBType"), exports);
12
+ tslib_1.__exportStar(require("./GeneralColumnType"), exports);
13
+ tslib_1.__exportStar(require("./ResultSetHelperMetadata"), exports);
14
+ tslib_1.__exportStar(require("./RedisKeyType"), exports);
15
+ tslib_1.__exportStar(require("./ResourceType"), exports);
5
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/resource/index.ts"],"names":[],"mappings":";;;AAAA,wDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/resource/index.ts"],"names":[],"mappings":";;;AAAA,wDAA8B;AAC9B,sDAA4B;AAC5B,6DAAmC;AACnC,2DAAiC;AACjC,oEAA0C;AAC1C,uDAA6B;AAC7B,8DAAoC;AACpC,mDAAyB;AACzB,8DAAoC;AACpC,oEAA0C;AAC1C,yDAA+B;AAC/B,yDAA+B"}
@@ -1,4 +1,6 @@
1
+ /// <reference types="node" />
1
2
  export declare const sleep: (ms: number) => Promise<void>;
2
3
  export declare const toNum: (s: string | undefined) => number | undefined;
3
- export declare const toBoolean: (s: string | undefined) => boolean | undefined;
4
+ export declare const toBoolean: (s: Buffer | string | undefined) => boolean | undefined;
4
5
  export declare const toDate: (s: string | number | Date | undefined) => Date | undefined;
6
+ export declare const tolines: (s: string) => string[];
package/built/src/util.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toDate = exports.toBoolean = exports.toNum = exports.sleep = void 0;
3
+ exports.tolines = exports.toDate = exports.toBoolean = exports.toNum = exports.sleep = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const dayjs_1 = tslib_1.__importDefault(require("dayjs"));
6
6
  const sleep = (ms) => new Promise((res) => setTimeout(res, ms));
@@ -20,6 +20,10 @@ const toBoolean = (s) => {
20
20
  if (s === null || s === undefined) {
21
21
  return undefined;
22
22
  }
23
+ if (s instanceof Buffer) {
24
+ const buf = s;
25
+ return buf.at(0) === 1;
26
+ }
23
27
  return 'true' === s.toLowerCase();
24
28
  };
25
29
  exports.toBoolean = toBoolean;
@@ -39,4 +43,8 @@ const toDate = (s) => {
39
43
  return r;
40
44
  };
41
45
  exports.toDate = toDate;
46
+ const tolines = (s) => {
47
+ return s.replace(/\r\n/, '\n').replace(/\r/, '\n').split(/\n/);
48
+ };
49
+ exports.tolines = tolines;
42
50
  //# sourceMappingURL=util.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"util.js","sourceRoot":"","sources":["../../src/util.ts"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAEnB,MAAM,KAAK,GAAG,CAAC,EAAU,EAAiB,EAAE,CACjD,IAAI,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,UAAU,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC;AA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B,OAAO,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;KACpB;IAED,MAAM,CAAC,GAAG,IAAA,eAAK,EAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC5B,OAAO,CAAC,CAAC;AACX,CAAC,CAAC;AAnBW,QAAA,MAAM,UAmBjB;AAEK,MAAM,OAAO,GAAG,CAAC,CAAS,EAAY,EAAE;IAC7C,OAAO,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AACjE,CAAC,CAAC;AAFW,QAAA,OAAO,WAElB"}
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@l-v-yonsama/multi-platform-database-drivers",
3
- "version": "0.1.57",
3
+ "version": "0.1.88",
4
4
  "description": "multi-platform database drivers in TypeScript.",
5
5
  "engines": {
6
- "node": ">= 16 <19"
6
+ "node": ">= 16"
7
7
  },
8
8
  "devDependencies": {
9
9
  "@types/bytes": "^3.1.1",
@@ -28,7 +28,6 @@
28
28
  "clean": "rimraf coverage built tmp",
29
29
  "prebuild": "npm run lint",
30
30
  "build": "npm run clean && tsc -p tsconfig.json",
31
- "example:parser": "npm run build && node built/src/examples/parser.js",
32
31
  "build:watch": "npm run clean && tsc -w -p tsconfig.json",
33
32
  "build:release": "npm run clean && tsc -p tsconfig.release.json",
34
33
  "prepublishOnly": "npm run build:release",
@@ -1 +0,0 @@
1
- export {};
@@ -1,38 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const drivers_1 = require("../drivers");
5
- const types_1 = require("../types");
6
- const AwsServiceType_1 = require("../types/AwsServiceType");
7
- const AwsSupplyCredentialType_1 = require("../types/AwsSupplyCredentialType");
8
- (() => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
9
- const setting = {
10
- name: 'localLog',
11
- dbType: types_1.DBType.Aws,
12
- awsSetting: {
13
- services: [
14
- AwsServiceType_1.AwsServiceType.Cloudwatch,
15
- ],
16
- supplyCredentialType: AwsSupplyCredentialType_1.SupplyCredentialType.sharedCredentialsFile,
17
- profile: 'cloudberry',
18
- },
19
- host: '127.0.0.1',
20
- password: '',
21
- port: 0,
22
- url: '',
23
- user: '',
24
- };
25
- const driver = drivers_1.DBDriverResolver.getInstance().createDriver(setting);
26
- const r = yield driver.flow(() => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
27
- const queryResult = yield driver.cloudwatchClient.scanLogGroup({
28
- limit: 5,
29
- target: 'test',
30
- keyword: 'fields @timestamp, @message, @logStream| sort @timestamp desc',
31
- startTime: new Date('2023-04-21T11:00:00.000Z').valueOf(),
32
- endTime: new Date('2023-04-21T20:00:00.000Z').valueOf(),
33
- });
34
- console.log(queryResult.toString());
35
- }));
36
- console.log(r);
37
- }))();
38
- //# sourceMappingURL=example.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"example.js","sourceRoot":"","sources":["../../../src/examples/example.ts"],"names":[],"mappings":";;;AAAA,wCAAyD;AAEzD,oCAAgD;AAChD,4DAAyD;AACzD,8EAAwE;AAExE,CAAC,GAAwB,EAAE;IACzB,MAAM,OAAO,GAAsB;QACjC,IAAI,EAAE,UAAU;QAChB,MAAM,EAAE,cAAM,CAAC,GAAG;QAClB,UAAU,EAAE;YACV,QAAQ,EAAE;gBACR,+BAAc,CAAC,UAAU;aAG1B;YACD,oBAAoB,EAAE,8CAAoB,CAAC,qBAAqB;YAChE,OAAO,EAAE,YAAY;SACtB;QACD,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,CAAC;QACP,GAAG,EAAE,EAAE;QACP,IAAI,EAAE,EAAE;KACT,CAAC;IACF,MAAM,MAAM,GACV,0BAAgB,CAAC,WAAW,EAAE,CAAC,YAAY,CAAY,OAAO,CAAC,CAAC;IAClE,MAAM,CAAC,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,GAAS,EAAE;QA4BrC,MAAM,WAAW,GAAG,MAAM,MAAM,CAAC,gBAAgB,CAAC,YAAY,CAAC;YAC7D,KAAK,EAAE,CAAC;YACR,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,+DAA+D;YACxE,SAAS,EAAE,IAAI,IAAI,CAAC,0BAA0B,CAAC,CAAC,OAAO,EAAE;YACzD,OAAO,EAAE,IAAI,IAAI,CAAC,0BAA0B,CAAC,CAAC,OAAO,EAAE;SACxD,CAAC,CAAC;QACH,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;IAwCtC,CAAC,CAAA,CAAC,CAAC;IACH,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACjB,CAAC,CAAA,CAAC,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const pgsql_ast_parser_1 = require("pgsql-ast-parser");
4
- const { normalized, toArgList } = normalize('select * from xxx where id = :id AND other=:other + :id');
5
- const ast25 = (0, pgsql_ast_parser_1.parseFirst)(normalized);
6
- console.log(JSON.stringify(ast25, null, 2));
7
- console.log(toArgList({ id: 'myId', other: 42 }));
8
- function normalize(query) {
9
- let i = 0;
10
- const byName = {};
11
- const normalized = query.replace(/(?<!:):(\w+)\b/gi, (_, x) => {
12
- if (byName[x]) {
13
- return '$' + byName[x];
14
- }
15
- return '$' + (byName[x] = ++i);
16
- });
17
- const keys = Object.keys(byName);
18
- function toArgList(args) {
19
- const ret = Array(keys.length);
20
- for (const k of keys) {
21
- ret[byName[k] - 1] = args[k];
22
- }
23
- return ret;
24
- }
25
- return { normalized, toArgList };
26
- }
27
- //# sourceMappingURL=parser.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parser.js","sourceRoot":"","sources":["../../../src/examples/parser.ts"],"names":[],"mappings":";;AAAA,uDAM0B;AA6D1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../../../src/types/AwsRegion.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG;IACvB,QAAQ,EAAE,YAAY;IAEtB,OAAO,EAAE,WAAW;IAEpB,QAAQ,EAAE,YAAY;IACtB,QAAQ,EAAE,YAAY;IAEtB,YAAY,EAAE,gBAAgB;IAC9B,YAAY,EAAE,gBAAgB;IAC9B,YAAY,EAAE,gBAAgB;IAE9B,YAAY,EAAE,gBAAgB;IAC9B,YAAY,EAAE,gBAAgB;IAC9B,YAAY,EAAE,gBAAgB;IAC9B,YAAY,EAAE,gBAAgB;IAE9B,UAAU,EAAE,cAAc;IAE1B,UAAU,EAAE,cAAc;IAC1B,UAAU,EAAE,cAAc;IAE1B,QAAQ,EAAE,YAAY;IAEtB,OAAO,EAAE,WAAW;IACpB,OAAO,EAAE,WAAW;IAEpB,QAAQ,EAAE,YAAY;IACtB,QAAQ,EAAE,YAAY;IAEtB,OAAO,EAAE,WAAW;IAEpB,UAAU,EAAE,cAAc;IAC1B,QAAQ,EAAE,YAAY;IAEtB,OAAO,EAAE,WAAW;IAEpB,OAAO,EAAE,WAAW;IACpB,OAAO,EAAE,WAAW;IAEpB,OAAO,EAAE,WAAW;IACpB,OAAO,EAAE,WAAW;CACZ,CAAC;AAGE,QAAA,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,iBAAS,CAAC,CAAC,IAAI,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"AwsSQSAttributes.js","sourceRoot":"","sources":["../../../src/types/AwsSQSAttributes.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"AwsServiceType.js","sourceRoot":"","sources":["../../../src/types/AwsServiceType.ts"],"names":[],"mappings":";;;AAAa,QAAA,cAAc,GAAG;IAC5B,EAAE,EAAE,IAAI;IACR,GAAG,EAAE,KAAK;IACV,UAAU,EAAE,YAAY;CAChB,CAAC;AAIE,QAAA,oBAAoB,GAAG,MAAM,CAAC,MAAM,CAAC,sBAAc,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"AwsSupplyCredentialType.js","sourceRoot":"","sources":["../../../src/types/AwsSupplyCredentialType.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG;IAKlC,qBAAqB,EAAE,yBAAyB;IAMhD,oBAAoB,EAAE,uBAAuB;IAC7C,kBAAkB,EAAE,sBAAsB;CAClC,CAAC;AAIE,QAAA,oBAAoB,GAAG,MAAM,CAAC,MAAM,CAAC,4BAAoB,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"CompareKey.js","sourceRoot":"","sources":["../../../src/types/CompareKey.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DBType.js","sourceRoot":"","sources":["../../../src/types/DBType.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG;IACpB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;CACF,CAAC;AAIE,QAAA,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,cAAM,CAAC,CAAC;AAE3C,MAAM,KAAK,GAAG,CAAC,MAAc,EAAW,EAAE,CAAC,cAAM,CAAC,GAAG,KAAK,MAAM,CAAC;AAA3D,QAAA,KAAK,SAAsD;AAEjE,MAAM,SAAS,GAAG,CAAC,MAAc,EAAW,EAAE;IACnD,QAAQ,MAAM,EAAE;QACd,KAAK,cAAM,CAAC,KAAK,CAAC;QAClB,KAAK,cAAM,CAAC,QAAQ;YAClB,OAAO,IAAI,CAAC;KACf;IACD,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAPW,QAAA,SAAS,aAOpB"}