Module: Rubeus::Extensions::Java::Sql::Connection

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

Instance Method Summary collapse

Methods included from Jdbc::CloseableResource

#with_close

Instance Method Details

#query(sql, &block) ⇒ Object



12
13
14
# File 'lib/rubeus/extensions/java/sql/connection.rb', line 12

def query(sql, &block)
  statement{|st| st.query(sql, &block)}
end

#statement(*args, &block) ⇒ Object



8
9
10
# File 'lib/rubeus/extensions/java/sql/connection.rb', line 8

def statement(*args, &block)
  with_close(create_statement(*args), &block)
end

#tables(catalog, schema_pattern, table_name_pattern, options = nil) ⇒ Object



16
17
18
# File 'lib/rubeus/extensions/java/sql/connection.rb', line 16

def tables(catalog, schema_pattern, table_name_pattern, options = nil)
  .table_objects(catalog, schema_pattern, table_name_pattern, options = nil)
end