Jaxer.ResultSet : Object
Return to: Jaxer Framework index

Platform Support

Jaxer Server Framework Jaxer Client Framework
0.9 no

Properties

Property Action Jaxer Server Framework Jaxer Client Framework
columns : Array
An array of column names for all rows in this resultSet. TODO - Note that (depending on the DB "driver" implementation used) the columns array may be empty if there are no rows of data; this will be fixed in the future.
No Details 0.9 no
hasData : Boolean
True if this resultSet contains any data, false otherwise.
No Details 0.9 no
rows : Array
The array of rows in the resultSet in the order retrieved from the database. Each row has properties corresponding to the column names in the returned data. Each row also has a special property, $values, that's an array of the values in that row (in the same order as the columns array).
No Details 0.9 no
rowsAsArrays : Array
An alternate representation of the rows of the resultSet: each row is itself an array, containing the values (cells) in that row in the same order as the columns array.
No Details 0.9 no
singleResult : Object
This contains the first value (cell) in the first row in the resultSet, if any, or else it contains null. (You can disambiguate DB nulls from no data by checking the hasData property or rows.length). This is convenient for queries (e.g. "SELECT COUNT(*) FROM mytable") that are known to return a single value.
No Details 0.9 no
aptana_docs