Next: , Up: DBI.ResultSet   [Index]


3.5.1 DBI.ResultSet: accessing

columnAt: aIndex

Answer the aIndex’th column name.

columnNames

Answer an array of column names in order (abstract).

columns

Answer a Dictionary of column name -> ColumnInfo pairs (abstract).

isDML

Returns true if the statement was not a SELECT or similar operation (e.g. SHOW, DESCRIBE, EXPLAIN).

isSelect

Returns true if the statement was a SELECT or similar operation (e.g. SHOW, DESCRIBE, EXPLAIN), false otherwise.

rowCount

Returns the number of rows in the result set; error for DML statements.

rows

Answer the contents of the execution result as array of Rows.

rowsAffected

For DML statments, returns the number of rows affected; error for SELECT statements.

statement

Return the Statement, if any, that generated the result set.