adding dynamoDB describe call to dynamo integration
This commit is contained in:
parent
c5b066472b
commit
b57b0f1c7b
|
@ -80,6 +80,17 @@ module DynamoModule {
|
|||
},
|
||||
},
|
||||
},
|
||||
describe: {
|
||||
type: QueryTypes.FIELDS,
|
||||
customisable: true,
|
||||
readable: true,
|
||||
fields: {
|
||||
table: {
|
||||
type: DatasourceFieldTypes.STRING,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
get: {
|
||||
type: QueryTypes.FIELDS,
|
||||
customisable: true,
|
||||
|
@ -180,6 +191,13 @@ module DynamoModule {
|
|||
return response
|
||||
}
|
||||
|
||||
async describe(query: { table: string; }) {
|
||||
const params = {
|
||||
TableName: query.table,
|
||||
}
|
||||
return new AWS.DynamoDB().describeTable(params).promise()
|
||||
}
|
||||
|
||||
async get(query: { table: string; json: object }) {
|
||||
const params = {
|
||||
TableName: query.table,
|
||||
|
|
Loading…
Reference in New Issue