Included Modules

Class/Module Index [+]

Quicksearch

Sequel::JDBC::Dataset

Attributes

convert_types[RW]

Whether to convert some Java types to ruby types when retrieving rows. Uses the database's setting by default, can be set to false to roughly double performance when fetching rows.

Public Instance Methods

fetch_rows(sql, &block) click to toggle source

Correctly return rows from the database and return them as hashes.

# File lib/sequel/adapters/jdbc.rb, line 670
def fetch_rows(sql, &block)
  execute(sql){|result| process_result_set(result, &block)}
  self
end
prepare(type, name=nil, *values) click to toggle source

Create a named prepared statement that is stored in the database (and connection) for reuse.

# File lib/sequel/adapters/jdbc.rb, line 677
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.