Files

Class/Module Index [+]

Quicksearch

Sequel::Fdbsql::Dataset

Dataset class for the FoundationDB SQL Layer that uses the pg driver.

Constants

DatasetClass

Public Instance Methods

call(type, bind_vars=OPTS, *values, &block) click to toggle source

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
fetch_rows(sql) click to toggle source

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(type, name=nil, *values) click to toggle source

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.