Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
uzimith opened this issue Jan 15, 2019 · 0 comments
Open

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

uzimith opened this issue Jan 15, 2019 · 0 comments

Comments

@uzimith
Copy link
Contributor

uzimith commented Jan 15, 2019

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant