Method: Libsql::Database#first_value_from

Defined in:
lib/libsql/database.rb

#first_value_from(sql, *bind_params) ⇒ Object

Execute an sql statement, and return only the first column of the first row. If there is no result, return nil.

It is in all other ways, exactly like #first_row_from()



365
366
367
# File 'lib/libsql/database.rb', line 365

def first_value_from( sql, *bind_params )
  return first_row_from( sql, *bind_params).first
end