Kaya 0.4.4 reference for DB::DBResult

List of functions and data types in DB

DB::DBResult

Constructors

Usage

DBResult holds data about the result of a query.

res = exec(conn,"SELECT id,name FROM People");
if (res.rows > 0) {
    for row in res.table {
        // row[0] = DBInt(id)
        // row[1] = DBText(name)
    }
}

Related

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