This PR adds a SetContext method to Query that can be used to update the context of an existing query to allow for reuse of that query.
This PR moves the ctx parameter from db.Query/tx.Query to Get/Iter/GetAll since these methods are the point at which the actual query is executed. This is in light of comments on #66.
This PR adds a
SetContext
method toQuery
that can be used to update the context of an existing query to allow for reuse of that query.This PR moves thectx
parameter fromdb.Query
/tx.Query
toGet/Iter/GetAll
since these methods are the point at which the actual query is executed. This is in light of comments on #66.