Class: Sequel::Database
- Inherits:
-
Object
- Object
- Sequel::Database
- Defined in:
- lib/sequel/core_ext/query.rb
Overview
Override
Instance Method Summary collapse
-
#query(sql) ⇒ Array
Executes a SQL query in the open connection and returns an array of results.
Instance Method Details
#query(sql) ⇒ Array
Executes a SQL query in the open connection and returns an array of results
10 11 12 |
# File 'lib/sequel/core_ext/query.rb', line 10 def query(sql) self[sql].map { |row| row } end |