KoteiIto / node-athena

a nodejs simple aws athena client
MIT License
105 stars 73 forks source link

the rows of the query of 'SHOW TABLES' #45

Open uzimith opened 5 years ago

uzimith commented 5 years ago

When I got the records to the query of 'SHOW TABLES IN hoge'

hoge
fuga 
piyo

I got the rows in node-athena.

[ Row { hoge: 'fuga' },
  Row { hoge: 'piyo' }]

The sample code I used is here.

    const client = createClient(
      { bucketUri: 's3://bucket_path' },
      { region: 'ap-northeast-1' }
    )
    const tables = await client
      .execute(`SHOW TABLES IN hoge`)
      .toPromise()
    console.log(tables.records)