Class: SQLite3::Statement
- Inherits:
-
Object
- Object
- SQLite3::Statement
- Defined in:
- lib/drip3.rb
Instance Method Summary collapse
Instance Method Details
#get_first_row(*bind_vars) ⇒ Object
16 17 18 |
# File 'lib/drip3.rb', line 16 def get_first_row(*bind_vars) execute(*bind_vars).first end |
#get_first_value(*bind_vars) ⇒ Object
20 21 22 23 |
# File 'lib/drip3.rb', line 20 def get_first_value(*bind_vars) execute(*bind_vars).each { |row| return row[0] } nil end |