Result attributes {RPgSQL}R Documentation

Information about the result buffer

Description

db.result.columns get number of columns in result.
db.result.rows get number of rows in result.
db.result.column.number convert column a name to a column number.
db.result.column.type get the type-code for a result column.
db.result.column.names get the column names from the result buffer.

Usage

db.result.columns()
db.result.rows()
db.result.column.number(col.name)
db.result.column.type(col=1)
db.result.column.names()

Arguments

col.name a character string containing a column name
col a column number

Value

db.result.columns the number of columns in the result buffer.
db.result.rows the number of rows in the result buffer.
db.result.column.number a column number.
db.result.column.type a column type code.
db.result.column.names a list of column names.

Author(s)

Timothy H. Keitt