Class | Sequel::IBMDB::Statement |
In: |
lib/sequel/adapters/ibmdb.rb
|
Parent: | Object |
Wraps results returned by queries on IBM_DB.
Hold the given statement.
# File lib/sequel/adapters/ibmdb.rb, line 125 125: def initialize(stmt) 126: @stmt = stmt 127: end
Return the results of a query as an array of values.
# File lib/sequel/adapters/ibmdb.rb, line 141 141: def fetch_array 142: IBM_DB.fetch_array(@stmt) if @stmt 143: end
Return the field name at the given column in the result set.
# File lib/sequel/adapters/ibmdb.rb, line 146 146: def field_name(ind) 147: IBM_DB.field_name(@stmt, ind) 148: end
Return the field precision for the given field name in the result set.
# File lib/sequel/adapters/ibmdb.rb, line 156 156: def field_precision(key) 157: IBM_DB.field_precision(@stmt, key) 158: end
Return the field type for the given field name in the result set.
# File lib/sequel/adapters/ibmdb.rb, line 151 151: def field_type(key) 152: IBM_DB.field_type(@stmt, key) 153: end
Free the memory related to this statement.
# File lib/sequel/adapters/ibmdb.rb, line 161 161: def free 162: IBM_DB.free_stmt(@stmt) 163: end
Free the memory related to this result set, only useful for prepared statements which have a different result set on every call.
# File lib/sequel/adapters/ibmdb.rb, line 167 167: def free_result 168: IBM_DB.free_result(@stmt) 169: end