# File lib/dbi/handles/database.rb, line 115 115: def select_all(stmt, *bindvars, &p) 116: raise InterfaceError, "Database connection was already closed!" if @handle.nil? 117: rows = nil 118: execute(stmt, *bindvars) do |sth| 119: if block_given? 120: sth.each(&p) 121: else 122: rows = sth.fetch_all 123: end 124: end 125: return rows 126: end