Methods

Class/Module Index [+]

Quicksearch

Sequel::JDBC::Postgres::AdapterMethods

Methods to add to the JDBC adapter/connection to allow it to work with the shared PostgreSQL code.

Public Instance Methods

execute(sql, args=nil) click to toggle source

Give the JDBC adapter a direct execute method, which creates a statement with the given sql and executes it.

# File lib/sequel/adapters/jdbc/postgresql.rb, line 17
def execute(sql, args=nil)
  method = block_given? ? :executeQuery : :execute
  @db.send(:statement, self) do |stmt|
    rows = @db.log_yield(sql){stmt.send(method, sql)}
    yield(rows) if block_given?
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.