Method: GitHub::SQL.value
- Defined in:
- lib/github/sql.rb
.value(sql, bindings = {}) ⇒ Object
Public: Create and execute a new SQL query, returning the value of the first column of the first result row.
sql - A SQL string. See GitHub::SQL#add for details. bindings - Optional bind values. See GitHub::SQL#add for details.
Returns a value or nil.
115 116 117 |
# File 'lib/github/sql.rb', line 115 def self.value(sql, bindings = {}) new(sql, bindings).value end |