mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
Added test case for CreatePreparedStatementCommand
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
const { AthenaClient, StartQueryExecutionCommand, CreateNamedQueryCommand, UpdateNamedQueryCommand } = require("@aws-sdk/client-athena");
|
const { AthenaClient, StartQueryExecutionCommand, CreateNamedQueryCommand, UpdateNamedQueryCommand, CreatePreparedStatementCommand } = require("@aws-sdk/client-athena");
|
||||||
const AWS = require('aws-sdk');
|
const AWS = require('aws-sdk');
|
||||||
const express = require('express');
|
const express = require('express');
|
||||||
const bodyParser = require('body-parser');
|
const bodyParser = require('body-parser');
|
||||||
@@ -70,3 +70,16 @@ app.post('/v2/athena/all', async (req, res) => {
|
|||||||
|
|
||||||
res.end();
|
res.end();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
app.post('/dynamodb-v3', async (req, res) => {
|
||||||
|
const userQueryStatement = req.body.query; // $ MISSING: Source
|
||||||
|
const client = new AthenaClient({ region: "us-east-1" });
|
||||||
|
const input = {
|
||||||
|
StatementName: "STRING_VALUE",
|
||||||
|
WorkGroup: "STRING_VALUE",
|
||||||
|
QueryStatement: userQueryStatement,
|
||||||
|
Description: "STRING_VALUE",
|
||||||
|
};
|
||||||
|
const command = new CreatePreparedStatementCommand(input);
|
||||||
|
await client.send(command); // $ MISSING: Alert
|
||||||
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user