athena-query
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

athena-query

tests JavaScript Style Guide

Usage

npm i athena-query

@aws-sdk/credential-providers and @aws-sdk/client-athena are required as peer dependencies, make sure to install them as well.

import { query } from 'athena-query'

const [columns, rows] = await query('select * from yourtable')

// with options
const [columns, rows] = await query('select * from yourtable', {
    region: 'us-east-1',
    output: 's3://yourbucket/athena-query-results',
    backoff: 2000 // milliseconds
})

Options

  • region - AWS region
  • profile - AWS profile
  • workgroup - Athena workgroup
  • output - S3 bucket to store query results
  • backoff - Backoff time in milliseconds

Readme

Keywords

none

Package Sidebar

Install

npm i athena-query

Weekly Downloads

7

Version

1.0.6

License

MIT

Unpacked Size

20.4 kB

Total Files

9

Last publish

Collaborators

  • hawyar