Add ability to do follow-up queries of revisions.
commitc122fed06e056e8b6388ef4955e0d3bc30ed7c94
authorAlexis Gallagher <alexis@alexisgallagher.com>
Thu, 24 Mar 2011 12:47:55 +0000 (24 12:47 +0000)
committerAlexis Gallagher <alexis@alexisgallagher.com>
Thu, 24 Mar 2011 12:58:45 +0000 (24 12:58 +0000)
tree08700c6c57238ecb2d5cdbd5635011a6fd4519e5
parent2c8e02b7e2f04de9b1e6628854c4fc88c92f5ab0
Add ability to do follow-up queries of revisions.

This is added through the exported function GET-REVISIONS-RESULT,
which returns a QUERY-RESULT object.

A QUERY-RESULT object accumulates results from a query,
such as GET-REVISIONS, that may require follow up queries to
retrieve more results. The methods HAS-MORE-RESULTS-P and
GET-MORE-RESULTS-P can be used to continue the query, and
RESULTS returns the results.

Results are now stored as a list of alists. I
probably will update this to store results as vectors.

QUERY-RESULT and friends have been written generically so they
can be used to add similar behaviour to other queries besides
GET-REVISIONS. The non-exported functions
GET-REVISIONS-AND-CLOSURE does most of the
magic for follow-up queries.
src/packages.lisp
src/query.lisp