Method: Sequel::Database#get
- Defined in:
- lib/sequel/database.rb
#get(*args, &block) ⇒ Object
Returns a single value from the database, e.g.:
# SELECT 1
DB.get(1) #=> 1
# SELECT version()
DB.get(:version.sql_function) #=> ...
324 325 326 |
# File 'lib/sequel/database.rb', line 324 def get(*args, &block) dataset.get(*args, &block) end |