Execute the given type of statement with the hash of values.
# File lib/sequel/adapters/fdbsql.rb, line 148 def call(type, bind_vars=OPTS, *values, &block) ps = to_prepared_statement(type, values) ps.extend(BindArgumentMethods) ps.call(bind_vars, &block) end
Yield all rows returned by executing the given SQL and converting the types.
# File lib/sequel/adapters/fdbsql.rb, line 156 def fetch_rows(sql) execute(sql) do |res| columns = set_columns(res) yield_hash_rows(res, columns) {|h| yield h} end end
Prepare the given type of statement with the given name, and store it in the database to be called later.
# File lib/sequel/adapters/fdbsql.rb, line 165 def prepare(type, name=nil, *values) ps = to_prepared_statement(type, values) ps.extend(PreparedStatementMethods) if name ps.prepared_statement_name = name db.set_prepared_statement(name, ps) end ps end
Generated with the Darkfish Rdoc Generator 2.