Included modules
- StoredProcedures
Constants
PreparedStatementMethods | = | prepared_statements_module( "sql = self; opts = Hash[opts]; opts[:arguments] = bind_arguments", Sequel::Dataset::UnnumberedArgumentMapper, %w"execute execute_dui") do private def execute_insert(sql, opts=OPTS) sql = self opts = Hash[opts] opts[:arguments] = bind_arguments opts[:type] = :insert super end end | ||
StoredProcedureMethods | = | prepared_statements_module( "sql = @opts[:sproc_name]; opts = Hash[opts]; opts[:args] = @opts[:sproc_args]; opts[:sproc] = true", Sequel::Dataset::StoredProcedureMethods, %w"execute execute_dui") do private def execute_insert(sql, opts=OPTS) sql = @opts[:sproc_name] opts = Hash[opts] opts[:args] = @opts[:sproc_args] opts[:sproc] = true opts[:type] = :insert super end end |
Public Instance methods
fetch_rows(sql, &block)
[show source]
# File lib/sequel/adapters/jdbc.rb 756 def fetch_rows(sql, &block) 757 execute(sql){|result| process_result_set(result, &block)} 758 self 759 end
with_convert_types(v)
Set whether to convert Java types to ruby types in the returned dataset.
[show source]
# File lib/sequel/adapters/jdbc.rb 767 def with_convert_types(v) 768 clone(:convert_types=>v) 769 end
with_fetch_size(size)
Set the fetch size on JDBC
ResultSets created from the returned dataset.
[show source]
# File lib/sequel/adapters/jdbc.rb 762 def with_fetch_size(size) 763 clone(:fetch_size=>size) 764 end