|
Whitebeam Object Definition
|
Method Description
PgsqlResult.fetchRowObject()
Read an indexed row from the result set, returned as a JavaScript 'Object'.
See Also
PgsqlConnection,
PgsqlResult Syntax
MetaData Object = PgsqlResult.fetchRowObject(rowIndex)
Parameters
The 'PgsqlResult.fetchRowObject' method takes 1 parameter:
Name | Type/Value | Range/Length | Description | rowIndex | number | | Required. The index, starting from zero (0), of the row to retrieve |
Results
The 'PgsqlResult.fetchRowObject' method returns a JavaScript object containing arbitrary attributes (Meta Value):
Type/Value | Range/Length | Description |
MetaData |
  |
Returns a JavaScript object containing the columns from a specific row.
|
Remarks Creates a JavaScript object to contain the contents of a specific row in the result set. Note that this
method only returns something sensible if the operation performed on the database (connection.exec)
returned query data from the database (eg a SQL SELECT statement). If the row index provided in this call is outside the range of rows returned by the call this method throws a catachable exception. The object returned contains a property for each column heading in the row. Note the
behaviour of this method is undefined if there is more than one column with the same name. | If the index value is out of range this method throws a catchable exception. The types of the fields returned will be numbers for numeric fields, binary objects for 'BYTEA' fields and strings for all other field types. |
|
|
(loadtime : 18ms) |