Methods

Class/Module Index [+]

Quicksearch

Sequel::MySQL::Dataset::CallableStatementMethods

Methods to add to MySQL prepared statement calls without using a real database prepared statement and bound variables.

Public Instance Methods

subselect_sql(ds) click to toggle source

Extend given dataset with this module so subselects inside subselects in prepared statements work.

# File lib/sequel/adapters/mysql.rb, line 261
def subselect_sql(ds)
  ps = ds.to_prepared_statement(:select)
  ps.extend(CallableStatementMethods)
  ps = ps.bind(@opts[:bind_vars]) if @opts[:bind_vars]
  ps.prepared_args = prepared_args
  ps.prepared_sql
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.