You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Chris Anderson (JIRA)" <ji...@apache.org> on 2009/03/10 18:08:53 UTC

[jira] Closed: (COUCHDB-242) patch that allo lists to get first key and last key in tail

     [ https://issues.apache.org/jira/browse/COUCHDB-242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Anderson closed COUCHDB-242.
----------------------------------

    Resolution: Fixed

fixed a few weeks ago

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