Module: Rubeus::Extensions::Java::Sql::Statement

Includes:
Jdbc::CloseableResource
Defined in:
lib/rubeus/extensions/java/sql/statement.rb

Instance Method Summary collapse

Methods included from Jdbc::CloseableResource

#with_close

Instance Method Details

#query(sql, &block) ⇒ Object



7
8
9
# File 'lib/rubeus/extensions/java/sql/statement.rb', line 7

def query(sql, &block)
  with_close(execute_query(sql), &block)
end