Method: Baza::QueryBuffer#update

Defined in:
lib/baza/query_buffer.rb

#update(table, update, terms) ⇒ Object

Update as on a normal Baza::Db.

Example

buffer.update(:users, => “Kasper”, => 5)



64
65
66
67
68
# File 'lib/baza/query_buffer.rb', line 64

def update(table, update, terms)
  STDOUT.puts "Update called on table #{table}." if @debug
  query(@args[:db].update(table, update, terms, return_sql: true))
  nil
end