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

bigtable: add promise support #1713

Merged
merged 1 commit into from
Oct 18, 2016
Merged

bigtable: add promise support #1713

merged 1 commit into from
Oct 18, 2016

Conversation

callmehiphop
Copy link
Contributor

Breaking changes ahead! ⚠️

This adds Promise support for the @google-cloud/bigtable module!

Summary of changes

The following methods previously returned a stream in the event that the callback parameter was omitted. This functionality has since moved to a different method entirely.

  • Bigtable#getInstances -> Bigtable#getInstancesStream
  • Instance#getClusters -> Instance#getClustersStream
  • Instance#getTables -> Instance#getTablesStream
  • Table#getRows -> Table#createReadStream
  • Table#sampleRowKeys -> Table#sampleRowKeysStream

Each callback accepting change has also been updated to return a Promise instance in the event that thecallback was omitted.

@callmehiphop callmehiphop added the api: bigtable Issues related to the Bigtable API. label Oct 17, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 17, 2016
@stephenplusplus stephenplusplus merged commit 791f831 into googleapis:master Oct 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigtable Issues related to the Bigtable API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants