@onivoro/server-aws-redshift 22.0.4 → 22.0.5
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/dist/cjs/lib/services/redshift.service.d.ts +2 -2
- package/dist/cjs/lib/services/redshift.service.js +1 -2
- package/dist/esm/lib/services/redshift.service.d.ts +2 -2
- package/dist/esm/lib/services/redshift.service.js +1 -2
- package/dist/types/lib/services/redshift.service.d.ts +2 -2
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ export declare class RedshiftDataService {
|
|
|
4
4
|
private redshiftDataClient;
|
|
5
5
|
private redshiftServerlessClient;
|
|
6
6
|
constructor(redshiftDataClient: RedshiftDataClient, redshiftServerlessClient: RedshiftServerlessClient);
|
|
7
|
-
waitForStatement(statementId: string, maxAttempts?: number, delay?: number): Promise<
|
|
7
|
+
waitForStatement(statementId: string, maxAttempts?: number, delay?: number): Promise<number>;
|
|
8
8
|
verifyEndpointAccess(workgroupName: string): Promise<import("@aws-sdk/client-redshift-serverless").GetWorkgroupCommandOutput>;
|
|
9
9
|
addIamUserToDatabaseGroup(_: {
|
|
10
10
|
database: string;
|
|
@@ -31,5 +31,5 @@ export declare class RedshiftDataService {
|
|
|
31
31
|
query(_: {
|
|
32
32
|
database: string;
|
|
33
33
|
workgroupName: string;
|
|
34
|
-
}, Sql: string): Promise<
|
|
34
|
+
}, Sql: string): Promise<number>;
|
|
35
35
|
}
|
|
@@ -29,7 +29,7 @@ let RedshiftDataService = class RedshiftDataService {
|
|
|
29
29
|
});
|
|
30
30
|
const status = await this.redshiftDataClient.send(describeStatementCommand);
|
|
31
31
|
if (status.Status === 'FINISHED') {
|
|
32
|
-
return;
|
|
32
|
+
return status.ResultRows;
|
|
33
33
|
}
|
|
34
34
|
if (status.Status === 'FAILED') {
|
|
35
35
|
throw new Error(`SQL statement failed: ${status.Error}`);
|
|
@@ -157,7 +157,6 @@ let RedshiftDataService = class RedshiftDataService {
|
|
|
157
157
|
WorkgroupName: _.workgroupName
|
|
158
158
|
}));
|
|
159
159
|
return await this.waitForStatement(result.Id);
|
|
160
|
-
// return await this.redshiftDataClient.send(new DescribeStatementCommand({ Id: result.Id }));
|
|
161
160
|
}
|
|
162
161
|
};
|
|
163
162
|
exports.RedshiftDataService = RedshiftDataService;
|
|
@@ -4,7 +4,7 @@ export declare class RedshiftDataService {
|
|
|
4
4
|
private redshiftDataClient;
|
|
5
5
|
private redshiftServerlessClient;
|
|
6
6
|
constructor(redshiftDataClient: RedshiftDataClient, redshiftServerlessClient: RedshiftServerlessClient);
|
|
7
|
-
waitForStatement(statementId: string, maxAttempts?: number, delay?: number): Promise<
|
|
7
|
+
waitForStatement(statementId: string, maxAttempts?: number, delay?: number): Promise<number>;
|
|
8
8
|
verifyEndpointAccess(workgroupName: string): Promise<import("@aws-sdk/client-redshift-serverless").GetWorkgroupCommandOutput>;
|
|
9
9
|
addIamUserToDatabaseGroup(_: {
|
|
10
10
|
database: string;
|
|
@@ -31,5 +31,5 @@ export declare class RedshiftDataService {
|
|
|
31
31
|
query(_: {
|
|
32
32
|
database: string;
|
|
33
33
|
workgroupName: string;
|
|
34
|
-
}, Sql: string): Promise<
|
|
34
|
+
}, Sql: string): Promise<number>;
|
|
35
35
|
}
|
|
@@ -29,7 +29,7 @@ let RedshiftDataService = class RedshiftDataService {
|
|
|
29
29
|
});
|
|
30
30
|
const status = await this.redshiftDataClient.send(describeStatementCommand);
|
|
31
31
|
if (status.Status === 'FINISHED') {
|
|
32
|
-
return;
|
|
32
|
+
return status.ResultRows;
|
|
33
33
|
}
|
|
34
34
|
if (status.Status === 'FAILED') {
|
|
35
35
|
throw new Error(`SQL statement failed: ${status.Error}`);
|
|
@@ -157,7 +157,6 @@ let RedshiftDataService = class RedshiftDataService {
|
|
|
157
157
|
WorkgroupName: _.workgroupName
|
|
158
158
|
}));
|
|
159
159
|
return await this.waitForStatement(result.Id);
|
|
160
|
-
// return await this.redshiftDataClient.send(new DescribeStatementCommand({ Id: result.Id }));
|
|
161
160
|
}
|
|
162
161
|
};
|
|
163
162
|
exports.RedshiftDataService = RedshiftDataService;
|
|
@@ -4,7 +4,7 @@ export declare class RedshiftDataService {
|
|
|
4
4
|
private redshiftDataClient;
|
|
5
5
|
private redshiftServerlessClient;
|
|
6
6
|
constructor(redshiftDataClient: RedshiftDataClient, redshiftServerlessClient: RedshiftServerlessClient);
|
|
7
|
-
waitForStatement(statementId: string, maxAttempts?: number, delay?: number): Promise<
|
|
7
|
+
waitForStatement(statementId: string, maxAttempts?: number, delay?: number): Promise<number>;
|
|
8
8
|
verifyEndpointAccess(workgroupName: string): Promise<import("@aws-sdk/client-redshift-serverless").GetWorkgroupCommandOutput>;
|
|
9
9
|
addIamUserToDatabaseGroup(_: {
|
|
10
10
|
database: string;
|
|
@@ -31,5 +31,5 @@ export declare class RedshiftDataService {
|
|
|
31
31
|
query(_: {
|
|
32
32
|
database: string;
|
|
33
33
|
workgroupName: string;
|
|
34
|
-
}, Sql: string): Promise<
|
|
34
|
+
}, Sql: string): Promise<number>;
|
|
35
35
|
}
|