little-owl
v1.0.0
Published
A companion to AWS Athena 🦉
Downloads
14
Readme
🦉 little-owl
Helper tools to query AWS Athena.
npm install little-owl
Documentation
little-owl
can be used either as a command line tool or as a node library.
CLI
The cli requires the following environment variables to be set:
AWS_REGION
: Region where the S3 bucket and Athena queries will run (default isus-east-1
)AWS_ACCESS_KEY_ID
: AWS access keyAWS_SECRET_ACCESS_KEY
: AWS secret keyAWS_OUTPUT_BUCKET
: Bucket where query results are stored (default islittle_owl_athena_output
)
Usage
$ little-owl query <sql>
$ echo <sql> | little-owl query
Examples
$ little-owl query "SELECT count(*) from owls"
Node API
License
MIT - See LICENSE.md