Sha256: db2be92e533c2d789d5221c3723dbd4085793e48912fc7325d854a64dbf356df

Contents?: true

Size: 547 Bytes

Versions: 1

Compression:

Stored size: 547 Bytes

Contents

Rubeus::Jdbc.depend_on("Statement")
Rubeus::Jdbc.depend_on("DatabaseMetaData")

module Rubeus::Extensions::Java::Sql
  module Connection
    include Rubeus::Jdbc::CloseableResource
    
    def statement(*args, &block)
      with_close(create_statement(*args), &block)
    end

    def query(sql, &block)
      statement{|st| st.query(sql, &block)}
    end
    
    def tables(catalog, schema_pattern, table_name_pattern, options = nil)
      getMetaData.table_objects(catalog, schema_pattern, table_name_pattern, options = nil)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubeus-0.0.8-java lib/rubeus/extensions/java/sql/connection.rb