Method: GitHub::SQL.hash_results

Defined in:
lib/github/sql.rb

.hash_results(sql, bindings = {}) ⇒ Object

Public: Create and execute a new SQL query, returning its hash_result rows.

sql - A SQL string. See GitHub::SQL#add for details. bindings - Optional bind values. See GitHub::SQL#add for details.

Returns an Array of result hashes.



94
95
96
# File 'lib/github/sql.rb', line 94

def self.hash_results(sql, bindings = {})
  new(sql, bindings).hash_results
end