Method: Sequel::Amalgalite::Database#single_value

Defined in:
lib/sequel/adapters/amalgalite.rb

#single_value(sql, opts = OPTS) ⇒ Object

Run the given SQL with the given arguments and return the first value of the first row.



127
128
129
# File 'lib/sequel/adapters/amalgalite.rb', line 127

def single_value(sql, opts=OPTS)
  _execute(sql, opts){|conn| log_connection_yield(sql, conn){conn.first_value_from(sql)}}
end