
Security News
NVD Concedes Inability to Keep Pace with Surging CVE Disclosures in 2025
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
athena-client
Advanced tools
Install with:
npm install athena-client
var credentials = {
accessKeyId: 'xxxx',
secretAccessKey: 'xxxx',
region: 'xxxx',
}
var config = {
bucketUri: 's3://xxxx'
}
var Athena = require("athena-client")
var client = Athena.Client(credentials, config)
client.execute('SELECT 1', function(err, data) {
if (err) {
return console.error(err)
}
console.log(data)
})
// You can also execute query with promises
client.execute('SELECT 1').then(function(data) {
console.log(data)
}).catch(function(err) {
console.error(err)
})
This module exposes the Client
method, which execute query to AWS Athena
Returns a client instance attached to the account specified by the given credentials and config.
The credentials can be specified as an object with accessKeyId
and secretAccessKey
and region
members such as the following:
var credentials = {
accessKeyId: 'xxxx',
secretAccessKey: 'xxxx',
region: 'xxxx',
}
config
object propertiesProperty | Default | Description |
---|---|---|
bucketUrl | Required | URI of s3 bucket |
pollingInterval | 1000 | Interval of polling sql results (ms) |
queryTimeout | 0 | Timeout of query execution. 0 is no timeout |
format | 'array' | If 'array' , the result of the query is as the following [ { _col0: '1' } , { _col0: '2' }] . If 'raw' , the result of query is same with aws-sdk |
Returns query result. The options can be specified as an object with timeout
and format
members such as the following:
var options = {
timeout: 3000,
format: 'raw',
}
client.execute('SELECT 1', function(err, data) {
if (err) {
return console.error(err)
}
console.log(data)
})
client.execute('SELECT 1', {timeout: 3000}, function(err, data) {
if (err) {
return console.error(err)
}
console.log(data)
})
client.execute('SELECT 1').then(function(data) {
console.log(data)
}).catch(function(err) {
console.error(err)
})
FAQs
a nodejs simple aws athena client
The npm package athena-client receives a total of 12,249 weekly downloads. As such, athena-client popularity was classified as popular.
We found that athena-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.