Module: Rhubarb::Persistence::UsePreparedStatements

Defined in:
lib/rhubarb/persistence.rb

Instance Method Summary collapse

Instance Method Details

#do_query(stmt, *args, &blk) ⇒ Object



17
18
19
20
# File 'lib/rhubarb/persistence.rb', line 17

def do_query(stmt, *args, &blk)
  the_stmt = (self.stmts[stmt] ||= self.prepare(stmt))
  the_stmt.execute!(args, &blk)
end