module PLSQL::Connection::CursorCommon
Public Instance Methods
fetch_all()
click to toggle source
Fetch all rows from cursor, each row as array of values
# File lib/plsql/connection.rb, line 159 def fetch_all rows = [] while (row = fetch) rows << row end rows end
fetch_hash()
click to toggle source
Fetch row from cursor as hash {:column => value, …}
# File lib/plsql/connection.rb, line 177 def fetch_hash (row = fetch) && ArrayHelpers::to_hash(fields, row) end
fetch_hash_all()
click to toggle source
Fetch all rows from cursor, each row as hash {:column => value, …}
# File lib/plsql/connection.rb, line 168 def fetch_hash_all rows = [] while (row = fetch_hash) rows << row end rows end