]> git.evergreen-ils.org Git - working/Evergreen.git/commit
Introduce a new syntax for specifying an ORDER BY clause
authorscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 2 May 2009 16:28:51 +0000 (16:28 +0000)
committerscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 2 May 2009 16:28:51 +0000 (16:28 +0000)
commitc51bdd5098f245fabb8b38917454860c4d587349
treecb273906daa60805ba09e11e5714e2071f7309d6
parent5b89959504bc7b87bdee72241d20a7c88757e4bc
Introduce a new syntax for specifying an ORDER BY clause
(while retaining the old syntax).  For example:

{
    "select":{ "au":[ "family_name", "id" ] },
    "from": "au",
    "order_by":
    [
        {
            "class":"au",
            "field":"family_name",
            "direction":"D"
        },
        {
            "class":"au",
            "field":"id"
        }
    ]
}

This syntax is more flexible than the old syntax, because columns
from the same table don't have to be grouped together.

Planned but not yet implemented: "transform" and "params" tag for
passing a column through a transforming function.

git-svn-id: svn://svn.open-ils.org/ILS/trunk@13035 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/src/c-apps/oils_cstore.c