Skip to content
This repository has been archived by the owner on Oct 11, 2022. It is now read-only.

v0.3.0: New onQueryComplete API, add size information

Compare
Choose a tag to compare
@mxstbr mxstbr released this 08 Nov 09:39
· 37 commits to master since this release
c854e0a

onQueryComplete now has a new API which returns an object as the second argument to the callback, and also returns the size information of the response from the database:

inspect(r, {
  onQueryComplete: (query, { size, time }) => {
    console.log(query, size, time);
  }
})

This will allow for more extensibility in the future.