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

NAME

6       DB::incExec - Execute an incremental query
7

SYNOPSIS

9       DBIncResult<a> incExec( DBHandle<a>  con, String query )
10

DESCRIPTION

12       Execute  a  query  with  the  given  connection  handle for incremental
13       retrieval of results. Results are then retrieved  one  row  at  a  time
14       using DB.getRow (3kaya)
15        Once  you  have  finished  with  the query you must call DB.incDiscard
16       (3kaya) to discard any remaining rows.
17
18
19    res = incExec(conn,"SELECT id,name FROM People");
20    row = getRow(res);
21    // row[0] = DBInt(id)
22    // row[1] = DBText(name)
23    incDiscard(res);
24

AUTHORS

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

LICENSE

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