@onivoro/server-aws-redshift 22.0.3 → 22.0.4
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 +4 -0
- package/dist/cjs/lib/services/redshift.service.js +9 -0
- package/dist/esm/lib/services/redshift.service.d.ts +4 -0
- package/dist/esm/lib/services/redshift.service.js +9 -0
- package/dist/types/lib/services/redshift.service.d.ts +4 -0
- package/package.json +1 -1
|
@@ -150,6 +150,15 @@ let RedshiftDataService = class RedshiftDataService {
|
|
|
150
150
|
throw error;
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
|
+
async query(_, Sql) {
|
|
154
|
+
const result = await this.redshiftDataClient.send(new client_redshift_data_1.ExecuteStatementCommand({
|
|
155
|
+
Database: _.database,
|
|
156
|
+
Sql,
|
|
157
|
+
WorkgroupName: _.workgroupName
|
|
158
|
+
}));
|
|
159
|
+
return await this.waitForStatement(result.Id);
|
|
160
|
+
// return await this.redshiftDataClient.send(new DescribeStatementCommand({ Id: result.Id }));
|
|
161
|
+
}
|
|
153
162
|
};
|
|
154
163
|
exports.RedshiftDataService = RedshiftDataService;
|
|
155
164
|
exports.RedshiftDataService = RedshiftDataService = __decorate([
|
|
@@ -150,6 +150,15 @@ let RedshiftDataService = class RedshiftDataService {
|
|
|
150
150
|
throw error;
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
|
+
async query(_, Sql) {
|
|
154
|
+
const result = await this.redshiftDataClient.send(new client_redshift_data_1.ExecuteStatementCommand({
|
|
155
|
+
Database: _.database,
|
|
156
|
+
Sql,
|
|
157
|
+
WorkgroupName: _.workgroupName
|
|
158
|
+
}));
|
|
159
|
+
return await this.waitForStatement(result.Id);
|
|
160
|
+
// return await this.redshiftDataClient.send(new DescribeStatementCommand({ Id: result.Id }));
|
|
161
|
+
}
|
|
153
162
|
};
|
|
154
163
|
exports.RedshiftDataService = RedshiftDataService;
|
|
155
164
|
exports.RedshiftDataService = RedshiftDataService = __decorate([
|