Skip to content

Bigtable.insert isn't promisified? #1788

@jgeewax

Description

@jgeewax

https://googlecloudplatform.github.io/google-cloud-node/#/docs/google-cloud/0.43.0/bigtable/table?method=insert

Looks like we don't have the promisified verison of insert which is a bummer because the code ends up looking like...

bigtable.getInstances().then(function(data) {
  var instance = data[0][0];
  var table = instance.table(...);
  table.insert(entries, function(err, insertErrors) {
    ...
  });
});

Mixing the promise version and callbacks makes me feel :(

Metadata

Metadata

Labels

api: bigtableIssues related to the Bigtable API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions