1DB.getRow(3kaya)             Kaya module reference            DB.getRow(3kaya)
2
3
4

NAME

6       DB::getRow - Retrieve a row from an incremental query
7

SYNOPSIS

9       [DBValue] getRow( DBIncResult<a>  res )
10

DESCRIPTION

12       Retrieve  a  row from an incremental query. The row, once retrieved, is
13       identical to one retrieved from a normal query. An  Exception  will  be
14       thrown if getRow is called on a result with no remaining rows.
15
16
17    res = incExec("SELECT id,name FROM People");
18    try {
19        while(true) {
20            row = getRow(res);
21            processRow(row);
22        }
23    } catch(TooManyRows) {
24        incDiscard(res);
25    }
26

AUTHORS

28       Kaya   standard  library  by  Edwin  Brady,  Chris  Morris  and  others
29       (kaya@kayalang.org). For further information see http://kayalang.org/
30

LICENSE

32       The Kaya standard library is free software;  you  can  redistribute  it
33       and/or  modify  it  under  the  terms  of the GNU Lesser General Public
34       License (version 2.1 or any later version) as  published  by  the  Free
35       Software Foundation.
36
38       DB.DBIncResult (3kaya)
39       DB.DBValue (3kaya)
40       DB.incDiscard (3kaya)
41       DB.incExec (3kaya)
42
43
44
45Kaya                             December 2010                DB.getRow(3kaya)
Impressum