Kaya 0.5.2 reference for DB::incExec

List of functions and data types in DB

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

Usage

Execute a query with the given connection handle for incremental retrieval of results. Results are then retrieved one row at a time using getRow. Once you have finished with the query you must call incDiscard to discard any remaining rows.

res = incExec(conn,"SELECT id,name FROM People");
row = getRow(res);
// row[0] = DBInt(id)
// row[1] = DBText(name)
incDiscard(res);

Related

kaya@kayalang.org | Last modified 13 July 2009 | Supported by Durham CompSoc | Powered by Kaya