Method: Sequel::Dataset::ArgumentMapper#call
- Defined in:
- lib/sequel/dataset/prepared_statements.rb
#call(bind_vars = OPTS, &block) ⇒ Object
Set the bind arguments based on the hash and call super.
56 57 58 59 60 61 |
# File 'lib/sequel/dataset/prepared_statements.rb', line 56 def call(bind_vars=OPTS, &block) sql = prepared_sql prepared_args.freeze ps = bind(bind_vars) ps.clone(:bind_arguments=>ps.map_to_prepared_args(ps.opts[:bind_vars]), :sql=>sql, :prepared_sql=>sql).run(&block) end |