@aws-sdk/client-redshift-data 3.32.0 → 3.36.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/CHANGELOG.md +44 -0
- package/{dist/cjs → dist-cjs}/RedshiftData.js +1 -2
- package/{dist/cjs → dist-cjs}/RedshiftDataClient.js +8 -9
- package/{dist/cjs → dist-cjs}/commands/BatchExecuteStatementCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CancelStatementCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeStatementCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeTableCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ExecuteStatementCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetStatementResultCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListDatabasesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListSchemasCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListStatementsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListTablesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/DescribeTablePaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/GetStatementResultPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListDatabasesPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/ListSchemasPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/ListStatementsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/ListTablesPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
- package/{dist/es → dist-es}/RedshiftData.js +2 -10
- package/{dist/es → dist-es}/RedshiftDataClient.js +2 -15
- package/dist-es/commands/BatchExecuteStatementCommand.js +39 -0
- package/{dist/es → dist-es}/commands/CancelStatementCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeStatementCommand.js +4 -32
- package/dist-es/commands/DescribeTableCommand.js +39 -0
- package/dist-es/commands/ExecuteStatementCommand.js +39 -0
- package/{dist/es → dist-es}/commands/GetStatementResultCommand.js +4 -31
- package/dist-es/commands/ListDatabasesCommand.js +39 -0
- package/dist-es/commands/ListSchemasCommand.js +39 -0
- package/{dist/es → dist-es}/commands/ListStatementsCommand.js +4 -31
- package/dist-es/commands/ListTablesCommand.js +39 -0
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -97
- package/{dist/es → dist-es}/pagination/DescribeTablePaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/GetStatementResultPaginator.js +17 -30
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListDatabasesPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListSchemasPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListStatementsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListTablesPaginator.js +17 -30
- package/{dist/es → dist-es}/protocols/Aws_json1_1.js +178 -184
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/RedshiftData.d.ts +2 -2
- package/{dist/types → dist-types}/RedshiftDataClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/BatchExecuteStatementCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/CancelStatementCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DescribeStatementCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DescribeTableCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ExecuteStatementCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetStatementResultCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListDatabasesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListSchemasCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListStatementsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListTablesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/DescribeTablePaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/GetStatementResultPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListDatabasesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListSchemasPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListStatementsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListTablesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/RedshiftData.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/RedshiftDataClient.d.ts +8 -8
- package/{dist/types → dist-types}/ts3.4/commands/BatchExecuteStatementCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/CancelStatementCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DescribeStatementCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DescribeTableCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/ExecuteStatementCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetStatementResultCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/ListDatabasesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/ListSchemasCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/ListStatementsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/ListTablesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/pagination/DescribeTablePaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/GetStatementResultPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListDatabasesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListSchemasPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListStatementsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListTablesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +52 -49
- package/RedshiftData.ts +0 -451
- package/RedshiftDataClient.ts +0 -272
- package/commands/BatchExecuteStatementCommand.ts +0 -108
- package/commands/CancelStatementCommand.ts +0 -94
- package/commands/DescribeStatementCommand.ts +0 -96
- package/commands/DescribeTableCommand.ts +0 -109
- package/commands/ExecuteStatementCommand.ts +0 -108
- package/commands/GetStatementResultCommand.ts +0 -95
- package/commands/ListDatabasesCommand.ts +0 -108
- package/commands/ListSchemasCommand.ts +0 -108
- package/commands/ListStatementsCommand.ts +0 -95
- package/commands/ListTablesCommand.ts +0 -109
- package/dist/cjs/RedshiftData.js.map +0 -1
- package/dist/cjs/RedshiftDataClient.js.map +0 -1
- package/dist/cjs/commands/BatchExecuteStatementCommand.js.map +0 -1
- package/dist/cjs/commands/CancelStatementCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeStatementCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeTableCommand.js.map +0 -1
- package/dist/cjs/commands/ExecuteStatementCommand.js.map +0 -1
- package/dist/cjs/commands/GetStatementResultCommand.js.map +0 -1
- package/dist/cjs/commands/ListDatabasesCommand.js.map +0 -1
- package/dist/cjs/commands/ListSchemasCommand.js.map +0 -1
- package/dist/cjs/commands/ListStatementsCommand.js.map +0 -1
- package/dist/cjs/commands/ListTablesCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/pagination/DescribeTablePaginator.js.map +0 -1
- package/dist/cjs/pagination/GetStatementResultPaginator.js.map +0 -1
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/pagination/ListDatabasesPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListSchemasPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListStatementsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListTablesPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/RedshiftData.js.map +0 -1
- package/dist/es/RedshiftDataClient.js.map +0 -1
- package/dist/es/commands/BatchExecuteStatementCommand.js +0 -79
- package/dist/es/commands/BatchExecuteStatementCommand.js.map +0 -1
- package/dist/es/commands/CancelStatementCommand.js.map +0 -1
- package/dist/es/commands/DescribeStatementCommand.js.map +0 -1
- package/dist/es/commands/DescribeTableCommand.js +0 -80
- package/dist/es/commands/DescribeTableCommand.js.map +0 -1
- package/dist/es/commands/ExecuteStatementCommand.js +0 -79
- package/dist/es/commands/ExecuteStatementCommand.js.map +0 -1
- package/dist/es/commands/GetStatementResultCommand.js.map +0 -1
- package/dist/es/commands/ListDatabasesCommand.js +0 -79
- package/dist/es/commands/ListDatabasesCommand.js.map +0 -1
- package/dist/es/commands/ListSchemasCommand.js +0 -79
- package/dist/es/commands/ListSchemasCommand.js.map +0 -1
- package/dist/es/commands/ListStatementsCommand.js.map +0 -1
- package/dist/es/commands/ListTablesCommand.js +0 -80
- package/dist/es/commands/ListTablesCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -21
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/pagination/DescribeTablePaginator.js.map +0 -1
- package/dist/es/pagination/GetStatementResultPaginator.js.map +0 -1
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/pagination/ListDatabasesPaginator.js.map +0 -1
- package/dist/es/pagination/ListSchemasPaginator.js.map +0 -1
- package/dist/es/pagination/ListStatementsPaginator.js.map +0 -1
- package/dist/es/pagination/ListTablesPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_json1_1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -1379
- package/pagination/DescribeTablePaginator.ts +0 -58
- package/pagination/GetStatementResultPaginator.ts +0 -57
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListDatabasesPaginator.ts +0 -58
- package/pagination/ListSchemasPaginator.ts +0 -54
- package/pagination/ListStatementsPaginator.ts +0 -58
- package/pagination/ListTablesPaginator.ts +0 -54
- package/protocols/Aws_json1_1.ts +0 -1614
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { DescribeTableCommand, } from "../commands/DescribeTableCommand";
|
|
2
3
|
import { RedshiftData } from "../RedshiftData";
|
|
3
4
|
import { RedshiftDataClient } from "../RedshiftDataClient";
|
|
4
|
-
import { DescribeTableCommand, } from "../commands/DescribeTableCommand";
|
|
5
|
-
/**
|
|
6
|
-
* @private
|
|
7
|
-
*/
|
|
8
5
|
var makePagedClientRequest = function (client, input) {
|
|
9
6
|
var args = [];
|
|
10
7
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
@@ -13,17 +10,12 @@ var makePagedClientRequest = function (client, input) {
|
|
|
13
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
14
11
|
return __generator(this, function (_a) {
|
|
15
12
|
switch (_a.label) {
|
|
16
|
-
case 0: return [4
|
|
17
|
-
case 1:
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
return [2 /*return*/, _a.sent()];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new DescribeTableCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
20
15
|
}
|
|
21
16
|
});
|
|
22
17
|
});
|
|
23
18
|
};
|
|
24
|
-
/**
|
|
25
|
-
* @private
|
|
26
|
-
*/
|
|
27
19
|
var makePagedRequest = function (client, input) {
|
|
28
20
|
var args = [];
|
|
29
21
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
@@ -32,10 +24,8 @@ var makePagedRequest = function (client, input) {
|
|
|
32
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
33
25
|
return __generator(this, function (_a) {
|
|
34
26
|
switch (_a.label) {
|
|
35
|
-
case 0: return [4
|
|
36
|
-
case 1:
|
|
37
|
-
// @ts-ignore
|
|
38
|
-
return [2 /*return*/, _a.sent()];
|
|
27
|
+
case 0: return [4, client.describeTable.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
39
29
|
}
|
|
40
30
|
});
|
|
41
31
|
});
|
|
@@ -54,34 +44,31 @@ export function paginateDescribeTable(config, input) {
|
|
|
54
44
|
hasNext = true;
|
|
55
45
|
_a.label = 1;
|
|
56
46
|
case 1:
|
|
57
|
-
if (!hasNext) return [3
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
58
48
|
input.NextToken = token;
|
|
59
49
|
input["MaxResults"] = config.pageSize;
|
|
60
|
-
if (!(config.client instanceof RedshiftData)) return [3
|
|
61
|
-
return [4
|
|
50
|
+
if (!(config.client instanceof RedshiftData)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
62
52
|
case 2:
|
|
63
53
|
page = _a.sent();
|
|
64
|
-
return [3
|
|
54
|
+
return [3, 6];
|
|
65
55
|
case 3:
|
|
66
|
-
if (!(config.client instanceof RedshiftDataClient)) return [3
|
|
67
|
-
return [4
|
|
56
|
+
if (!(config.client instanceof RedshiftDataClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
68
58
|
case 4:
|
|
69
59
|
page = _a.sent();
|
|
70
|
-
return [3
|
|
60
|
+
return [3, 6];
|
|
71
61
|
case 5: throw new Error("Invalid client, expected RedshiftData | RedshiftDataClient");
|
|
72
|
-
case 6: return [4
|
|
73
|
-
case 7: return [4
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
74
64
|
case 8:
|
|
75
65
|
_a.sent();
|
|
76
66
|
token = page.NextToken;
|
|
77
67
|
hasNext = !!token;
|
|
78
|
-
return [3
|
|
79
|
-
case 9: return [4
|
|
80
|
-
case 10:
|
|
81
|
-
// @ts-ignore
|
|
82
|
-
return [2 /*return*/, _a.sent()];
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
83
71
|
}
|
|
84
72
|
});
|
|
85
73
|
});
|
|
86
74
|
}
|
|
87
|
-
//# sourceMappingURL=DescribeTablePaginator.js.map
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { GetStatementResultCommand, } from "../commands/GetStatementResultCommand";
|
|
2
3
|
import { RedshiftData } from "../RedshiftData";
|
|
3
4
|
import { RedshiftDataClient } from "../RedshiftDataClient";
|
|
4
|
-
import { GetStatementResultCommand, } from "../commands/GetStatementResultCommand";
|
|
5
|
-
/**
|
|
6
|
-
* @private
|
|
7
|
-
*/
|
|
8
5
|
var makePagedClientRequest = function (client, input) {
|
|
9
6
|
var args = [];
|
|
10
7
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
@@ -13,17 +10,12 @@ var makePagedClientRequest = function (client, input) {
|
|
|
13
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
14
11
|
return __generator(this, function (_a) {
|
|
15
12
|
switch (_a.label) {
|
|
16
|
-
case 0: return [4
|
|
17
|
-
case 1:
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
return [2 /*return*/, _a.sent()];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new GetStatementResultCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
20
15
|
}
|
|
21
16
|
});
|
|
22
17
|
});
|
|
23
18
|
};
|
|
24
|
-
/**
|
|
25
|
-
* @private
|
|
26
|
-
*/
|
|
27
19
|
var makePagedRequest = function (client, input) {
|
|
28
20
|
var args = [];
|
|
29
21
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
@@ -32,10 +24,8 @@ var makePagedRequest = function (client, input) {
|
|
|
32
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
33
25
|
return __generator(this, function (_a) {
|
|
34
26
|
switch (_a.label) {
|
|
35
|
-
case 0: return [4
|
|
36
|
-
case 1:
|
|
37
|
-
// @ts-ignore
|
|
38
|
-
return [2 /*return*/, _a.sent()];
|
|
27
|
+
case 0: return [4, client.getStatementResult.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
39
29
|
}
|
|
40
30
|
});
|
|
41
31
|
});
|
|
@@ -54,33 +44,30 @@ export function paginateGetStatementResult(config, input) {
|
|
|
54
44
|
hasNext = true;
|
|
55
45
|
_a.label = 1;
|
|
56
46
|
case 1:
|
|
57
|
-
if (!hasNext) return [3
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
58
48
|
input.NextToken = token;
|
|
59
|
-
if (!(config.client instanceof RedshiftData)) return [3
|
|
60
|
-
return [4
|
|
49
|
+
if (!(config.client instanceof RedshiftData)) return [3, 3];
|
|
50
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
61
51
|
case 2:
|
|
62
52
|
page = _a.sent();
|
|
63
|
-
return [3
|
|
53
|
+
return [3, 6];
|
|
64
54
|
case 3:
|
|
65
|
-
if (!(config.client instanceof RedshiftDataClient)) return [3
|
|
66
|
-
return [4
|
|
55
|
+
if (!(config.client instanceof RedshiftDataClient)) return [3, 5];
|
|
56
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
67
57
|
case 4:
|
|
68
58
|
page = _a.sent();
|
|
69
|
-
return [3
|
|
59
|
+
return [3, 6];
|
|
70
60
|
case 5: throw new Error("Invalid client, expected RedshiftData | RedshiftDataClient");
|
|
71
|
-
case 6: return [4
|
|
72
|
-
case 7: return [4
|
|
61
|
+
case 6: return [4, __await(page)];
|
|
62
|
+
case 7: return [4, _a.sent()];
|
|
73
63
|
case 8:
|
|
74
64
|
_a.sent();
|
|
75
65
|
token = page.NextToken;
|
|
76
66
|
hasNext = !!token;
|
|
77
|
-
return [3
|
|
78
|
-
case 9: return [4
|
|
79
|
-
case 10:
|
|
80
|
-
// @ts-ignore
|
|
81
|
-
return [2 /*return*/, _a.sent()];
|
|
67
|
+
return [3, 1];
|
|
68
|
+
case 9: return [4, __await(undefined)];
|
|
69
|
+
case 10: return [2, _a.sent()];
|
|
82
70
|
}
|
|
83
71
|
});
|
|
84
72
|
});
|
|
85
73
|
}
|
|
86
|
-
//# sourceMappingURL=GetStatementResultPaginator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListDatabasesCommand, } from "../commands/ListDatabasesCommand";
|
|
2
3
|
import { RedshiftData } from "../RedshiftData";
|
|
3
4
|
import { RedshiftDataClient } from "../RedshiftDataClient";
|
|
4
|
-
import { ListDatabasesCommand, } from "../commands/ListDatabasesCommand";
|
|
5
|
-
/**
|
|
6
|
-
* @private
|
|
7
|
-
*/
|
|
8
5
|
var makePagedClientRequest = function (client, input) {
|
|
9
6
|
var args = [];
|
|
10
7
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
@@ -13,17 +10,12 @@ var makePagedClientRequest = function (client, input) {
|
|
|
13
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
14
11
|
return __generator(this, function (_a) {
|
|
15
12
|
switch (_a.label) {
|
|
16
|
-
case 0: return [4
|
|
17
|
-
case 1:
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
return [2 /*return*/, _a.sent()];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListDatabasesCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
20
15
|
}
|
|
21
16
|
});
|
|
22
17
|
});
|
|
23
18
|
};
|
|
24
|
-
/**
|
|
25
|
-
* @private
|
|
26
|
-
*/
|
|
27
19
|
var makePagedRequest = function (client, input) {
|
|
28
20
|
var args = [];
|
|
29
21
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
@@ -32,10 +24,8 @@ var makePagedRequest = function (client, input) {
|
|
|
32
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
33
25
|
return __generator(this, function (_a) {
|
|
34
26
|
switch (_a.label) {
|
|
35
|
-
case 0: return [4
|
|
36
|
-
case 1:
|
|
37
|
-
// @ts-ignore
|
|
38
|
-
return [2 /*return*/, _a.sent()];
|
|
27
|
+
case 0: return [4, client.listDatabases.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
39
29
|
}
|
|
40
30
|
});
|
|
41
31
|
});
|
|
@@ -54,34 +44,31 @@ export function paginateListDatabases(config, input) {
|
|
|
54
44
|
hasNext = true;
|
|
55
45
|
_a.label = 1;
|
|
56
46
|
case 1:
|
|
57
|
-
if (!hasNext) return [3
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
58
48
|
input.NextToken = token;
|
|
59
49
|
input["MaxResults"] = config.pageSize;
|
|
60
|
-
if (!(config.client instanceof RedshiftData)) return [3
|
|
61
|
-
return [4
|
|
50
|
+
if (!(config.client instanceof RedshiftData)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
62
52
|
case 2:
|
|
63
53
|
page = _a.sent();
|
|
64
|
-
return [3
|
|
54
|
+
return [3, 6];
|
|
65
55
|
case 3:
|
|
66
|
-
if (!(config.client instanceof RedshiftDataClient)) return [3
|
|
67
|
-
return [4
|
|
56
|
+
if (!(config.client instanceof RedshiftDataClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
68
58
|
case 4:
|
|
69
59
|
page = _a.sent();
|
|
70
|
-
return [3
|
|
60
|
+
return [3, 6];
|
|
71
61
|
case 5: throw new Error("Invalid client, expected RedshiftData | RedshiftDataClient");
|
|
72
|
-
case 6: return [4
|
|
73
|
-
case 7: return [4
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
74
64
|
case 8:
|
|
75
65
|
_a.sent();
|
|
76
66
|
token = page.NextToken;
|
|
77
67
|
hasNext = !!token;
|
|
78
|
-
return [3
|
|
79
|
-
case 9: return [4
|
|
80
|
-
case 10:
|
|
81
|
-
// @ts-ignore
|
|
82
|
-
return [2 /*return*/, _a.sent()];
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
83
71
|
}
|
|
84
72
|
});
|
|
85
73
|
});
|
|
86
74
|
}
|
|
87
|
-
//# sourceMappingURL=ListDatabasesPaginator.js.map
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListSchemasCommand } from "../commands/ListSchemasCommand";
|
|
2
3
|
import { RedshiftData } from "../RedshiftData";
|
|
3
4
|
import { RedshiftDataClient } from "../RedshiftDataClient";
|
|
4
|
-
import { ListSchemasCommand } from "../commands/ListSchemasCommand";
|
|
5
|
-
/**
|
|
6
|
-
* @private
|
|
7
|
-
*/
|
|
8
5
|
var makePagedClientRequest = function (client, input) {
|
|
9
6
|
var args = [];
|
|
10
7
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
@@ -13,17 +10,12 @@ var makePagedClientRequest = function (client, input) {
|
|
|
13
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
14
11
|
return __generator(this, function (_a) {
|
|
15
12
|
switch (_a.label) {
|
|
16
|
-
case 0: return [4
|
|
17
|
-
case 1:
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
return [2 /*return*/, _a.sent()];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListSchemasCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
20
15
|
}
|
|
21
16
|
});
|
|
22
17
|
});
|
|
23
18
|
};
|
|
24
|
-
/**
|
|
25
|
-
* @private
|
|
26
|
-
*/
|
|
27
19
|
var makePagedRequest = function (client, input) {
|
|
28
20
|
var args = [];
|
|
29
21
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
@@ -32,10 +24,8 @@ var makePagedRequest = function (client, input) {
|
|
|
32
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
33
25
|
return __generator(this, function (_a) {
|
|
34
26
|
switch (_a.label) {
|
|
35
|
-
case 0: return [4
|
|
36
|
-
case 1:
|
|
37
|
-
// @ts-ignore
|
|
38
|
-
return [2 /*return*/, _a.sent()];
|
|
27
|
+
case 0: return [4, client.listSchemas.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
39
29
|
}
|
|
40
30
|
});
|
|
41
31
|
});
|
|
@@ -54,34 +44,31 @@ export function paginateListSchemas(config, input) {
|
|
|
54
44
|
hasNext = true;
|
|
55
45
|
_a.label = 1;
|
|
56
46
|
case 1:
|
|
57
|
-
if (!hasNext) return [3
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
58
48
|
input.NextToken = token;
|
|
59
49
|
input["MaxResults"] = config.pageSize;
|
|
60
|
-
if (!(config.client instanceof RedshiftData)) return [3
|
|
61
|
-
return [4
|
|
50
|
+
if (!(config.client instanceof RedshiftData)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
62
52
|
case 2:
|
|
63
53
|
page = _a.sent();
|
|
64
|
-
return [3
|
|
54
|
+
return [3, 6];
|
|
65
55
|
case 3:
|
|
66
|
-
if (!(config.client instanceof RedshiftDataClient)) return [3
|
|
67
|
-
return [4
|
|
56
|
+
if (!(config.client instanceof RedshiftDataClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
68
58
|
case 4:
|
|
69
59
|
page = _a.sent();
|
|
70
|
-
return [3
|
|
60
|
+
return [3, 6];
|
|
71
61
|
case 5: throw new Error("Invalid client, expected RedshiftData | RedshiftDataClient");
|
|
72
|
-
case 6: return [4
|
|
73
|
-
case 7: return [4
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
74
64
|
case 8:
|
|
75
65
|
_a.sent();
|
|
76
66
|
token = page.NextToken;
|
|
77
67
|
hasNext = !!token;
|
|
78
|
-
return [3
|
|
79
|
-
case 9: return [4
|
|
80
|
-
case 10:
|
|
81
|
-
// @ts-ignore
|
|
82
|
-
return [2 /*return*/, _a.sent()];
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
83
71
|
}
|
|
84
72
|
});
|
|
85
73
|
});
|
|
86
74
|
}
|
|
87
|
-
//# sourceMappingURL=ListSchemasPaginator.js.map
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListStatementsCommand, } from "../commands/ListStatementsCommand";
|
|
2
3
|
import { RedshiftData } from "../RedshiftData";
|
|
3
4
|
import { RedshiftDataClient } from "../RedshiftDataClient";
|
|
4
|
-
import { ListStatementsCommand, } from "../commands/ListStatementsCommand";
|
|
5
|
-
/**
|
|
6
|
-
* @private
|
|
7
|
-
*/
|
|
8
5
|
var makePagedClientRequest = function (client, input) {
|
|
9
6
|
var args = [];
|
|
10
7
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
@@ -13,17 +10,12 @@ var makePagedClientRequest = function (client, input) {
|
|
|
13
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
14
11
|
return __generator(this, function (_a) {
|
|
15
12
|
switch (_a.label) {
|
|
16
|
-
case 0: return [4
|
|
17
|
-
case 1:
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
return [2 /*return*/, _a.sent()];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListStatementsCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
20
15
|
}
|
|
21
16
|
});
|
|
22
17
|
});
|
|
23
18
|
};
|
|
24
|
-
/**
|
|
25
|
-
* @private
|
|
26
|
-
*/
|
|
27
19
|
var makePagedRequest = function (client, input) {
|
|
28
20
|
var args = [];
|
|
29
21
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
@@ -32,10 +24,8 @@ var makePagedRequest = function (client, input) {
|
|
|
32
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
33
25
|
return __generator(this, function (_a) {
|
|
34
26
|
switch (_a.label) {
|
|
35
|
-
case 0: return [4
|
|
36
|
-
case 1:
|
|
37
|
-
// @ts-ignore
|
|
38
|
-
return [2 /*return*/, _a.sent()];
|
|
27
|
+
case 0: return [4, client.listStatements.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
39
29
|
}
|
|
40
30
|
});
|
|
41
31
|
});
|
|
@@ -54,34 +44,31 @@ export function paginateListStatements(config, input) {
|
|
|
54
44
|
hasNext = true;
|
|
55
45
|
_a.label = 1;
|
|
56
46
|
case 1:
|
|
57
|
-
if (!hasNext) return [3
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
58
48
|
input.NextToken = token;
|
|
59
49
|
input["MaxResults"] = config.pageSize;
|
|
60
|
-
if (!(config.client instanceof RedshiftData)) return [3
|
|
61
|
-
return [4
|
|
50
|
+
if (!(config.client instanceof RedshiftData)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
62
52
|
case 2:
|
|
63
53
|
page = _a.sent();
|
|
64
|
-
return [3
|
|
54
|
+
return [3, 6];
|
|
65
55
|
case 3:
|
|
66
|
-
if (!(config.client instanceof RedshiftDataClient)) return [3
|
|
67
|
-
return [4
|
|
56
|
+
if (!(config.client instanceof RedshiftDataClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
68
58
|
case 4:
|
|
69
59
|
page = _a.sent();
|
|
70
|
-
return [3
|
|
60
|
+
return [3, 6];
|
|
71
61
|
case 5: throw new Error("Invalid client, expected RedshiftData | RedshiftDataClient");
|
|
72
|
-
case 6: return [4
|
|
73
|
-
case 7: return [4
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
74
64
|
case 8:
|
|
75
65
|
_a.sent();
|
|
76
66
|
token = page.NextToken;
|
|
77
67
|
hasNext = !!token;
|
|
78
|
-
return [3
|
|
79
|
-
case 9: return [4
|
|
80
|
-
case 10:
|
|
81
|
-
// @ts-ignore
|
|
82
|
-
return [2 /*return*/, _a.sent()];
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
83
71
|
}
|
|
84
72
|
});
|
|
85
73
|
});
|
|
86
74
|
}
|
|
87
|
-
//# sourceMappingURL=ListStatementsPaginator.js.map
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListTablesCommand } from "../commands/ListTablesCommand";
|
|
2
3
|
import { RedshiftData } from "../RedshiftData";
|
|
3
4
|
import { RedshiftDataClient } from "../RedshiftDataClient";
|
|
4
|
-
import { ListTablesCommand } from "../commands/ListTablesCommand";
|
|
5
|
-
/**
|
|
6
|
-
* @private
|
|
7
|
-
*/
|
|
8
5
|
var makePagedClientRequest = function (client, input) {
|
|
9
6
|
var args = [];
|
|
10
7
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
@@ -13,17 +10,12 @@ var makePagedClientRequest = function (client, input) {
|
|
|
13
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
14
11
|
return __generator(this, function (_a) {
|
|
15
12
|
switch (_a.label) {
|
|
16
|
-
case 0: return [4
|
|
17
|
-
case 1:
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
return [2 /*return*/, _a.sent()];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListTablesCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
20
15
|
}
|
|
21
16
|
});
|
|
22
17
|
});
|
|
23
18
|
};
|
|
24
|
-
/**
|
|
25
|
-
* @private
|
|
26
|
-
*/
|
|
27
19
|
var makePagedRequest = function (client, input) {
|
|
28
20
|
var args = [];
|
|
29
21
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
@@ -32,10 +24,8 @@ var makePagedRequest = function (client, input) {
|
|
|
32
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
33
25
|
return __generator(this, function (_a) {
|
|
34
26
|
switch (_a.label) {
|
|
35
|
-
case 0: return [4
|
|
36
|
-
case 1:
|
|
37
|
-
// @ts-ignore
|
|
38
|
-
return [2 /*return*/, _a.sent()];
|
|
27
|
+
case 0: return [4, client.listTables.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
39
29
|
}
|
|
40
30
|
});
|
|
41
31
|
});
|
|
@@ -54,34 +44,31 @@ export function paginateListTables(config, input) {
|
|
|
54
44
|
hasNext = true;
|
|
55
45
|
_a.label = 1;
|
|
56
46
|
case 1:
|
|
57
|
-
if (!hasNext) return [3
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
58
48
|
input.NextToken = token;
|
|
59
49
|
input["MaxResults"] = config.pageSize;
|
|
60
|
-
if (!(config.client instanceof RedshiftData)) return [3
|
|
61
|
-
return [4
|
|
50
|
+
if (!(config.client instanceof RedshiftData)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
62
52
|
case 2:
|
|
63
53
|
page = _a.sent();
|
|
64
|
-
return [3
|
|
54
|
+
return [3, 6];
|
|
65
55
|
case 3:
|
|
66
|
-
if (!(config.client instanceof RedshiftDataClient)) return [3
|
|
67
|
-
return [4
|
|
56
|
+
if (!(config.client instanceof RedshiftDataClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
68
58
|
case 4:
|
|
69
59
|
page = _a.sent();
|
|
70
|
-
return [3
|
|
60
|
+
return [3, 6];
|
|
71
61
|
case 5: throw new Error("Invalid client, expected RedshiftData | RedshiftDataClient");
|
|
72
|
-
case 6: return [4
|
|
73
|
-
case 7: return [4
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
74
64
|
case 8:
|
|
75
65
|
_a.sent();
|
|
76
66
|
token = page.NextToken;
|
|
77
67
|
hasNext = !!token;
|
|
78
|
-
return [3
|
|
79
|
-
case 9: return [4
|
|
80
|
-
case 10:
|
|
81
|
-
// @ts-ignore
|
|
82
|
-
return [2 /*return*/, _a.sent()];
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
83
71
|
}
|
|
84
72
|
});
|
|
85
73
|
});
|
|
86
74
|
}
|
|
87
|
-
//# sourceMappingURL=ListTablesPaginator.js.map
|