Class: Sequel::Database

Inherits:
Object
  • Object
show all
Defined in:
lib/sequel/core_ext/query.rb

Overview

Override

Instance Method Summary collapse

Instance Method Details

#query(sql) ⇒ Array

Executes a SQL query in the open connection and returns an array of results

Parameters:

  • sql (String)

    SQL query to execute

Returns:

  • (Array)


10
11
12
# File 'lib/sequel/core_ext/query.rb', line 10

def query(sql)
  self[sql].map { |row| row }
end