Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Implement asynchronous result.fetchAll() method #21

Closed
Sannis opened this Issue · 3 comments

2 participants

@Sannis
Owner

UPD: Original issue title is "Implement asynchronous result.fetch*() methods"

@ssinghi

I think this is already done. In the code for the async query, the query execution, and fetching of results is done asynchronously. What mysql_fetch_row() and the library fetchRow does is just iterating over the result, and returning them from the local buffer. These are not blocking calls, they are just in process access or copying of
results. If you want them to be deferred it can be done by just wrapping them using nextTick in Javascript.

@Sannis
Owner

Yes, I understand this. My issue is basically about unification API with the rest of the MySQL bindings, where in query("SELECT ...") callback we get all results. If we want to use fetchRow, dataSeek and similar, they must be sync, but for fetchAll I plan write async version, this may be useful for large datasets.

@Sannis
Owner

result.fetchAll() method (MysqlConn::MysqlResult::FetchAll). Closed by 7d23b352459bf68e4dfdfb2b1bd6fe8013f54ef7

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.