Skip to content

Implement Readable stream for runQuery in datastore #289

Closed
@silvolu

Description

@silvolu

If no callback is given to runQuery, imply a Readable stream mode, e.g.:

var q = dataset.query(/*…*/);
dataset.runQuery(q)
  .on(“data”, function (entity) { console.log('I got one entity:' + entity); })
  .on(“end”, function (entity) { console.log('This is the end, my only friend'); })

And handle providing results as long as they are available.

Metadata

Metadata

Labels

🚨This issue needs some love.api: datastoreIssues related to the Datastore API.triage meI really want to be triaged.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions