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
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.