couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benoit Chesneau (JIRA)" <j...@apache.org>
Subject [jira] Created: (COUCHDB-242) patch that allo lists to get first key and last key in tail
Date Fri, 06 Feb 2009 23:27:02 GMT
patch that allo lists to get first key and last key in tail
-----------------------------------------------------------

                 Key: COUCHDB-242
                 URL: https://issues.apache.org/jira/browse/COUCHDB-242
             Project: CouchDB
          Issue Type: Improvement
          Components: JavaScript View Server
    Affects Versions: 0.9
         Environment: all
            Reporter: Benoit Chesneau
             Fix For: 0.9
         Attachments: couchdb-diff

This patch  add the possibility to get last key and first key in list, all rows can get current
row number an first/prev key. 

Lists functions have a new row_info argument that replace row_number that could be used. In
head row_info is null, in tail it's null if there isn't any rows. 

row_info is an object :

{
  first_key: XXX,
  row_number: XXX,
  prev_key: XXX
}

In tail, prev_key is latest key. On first row, prev_key is null.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message