Module: Rubeus::Extensions::Java::Sql::Connection
- Includes:
- Jdbc::CloseableResource
- Defined in:
- lib/rubeus/extensions/java/sql/connection.rb
Instance Method Summary collapse
- #query(sql, &block) ⇒ Object
- #statement(*args, &block) ⇒ Object
- #tables(catalog, schema_pattern, table_name_pattern, options = nil) ⇒ Object
Methods included from Jdbc::CloseableResource
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, = nil) getMetaData.table_objects(catalog, schema_pattern, table_name_pattern, = nil) end |