Return a prepared statement that can be used to lookup a row given a dataset for the row matching the primary key.
# File lib/sequel/plugins/prepared_statements_with_pk.rb, line 33 33: def prepared_lookup_dataset(ds) 34: cached_prepared_statement(:lookup_sql, ds.sql){prepare_statement(ds.filter(prepared_statement_key_array(primary_key).map{|k, v| [SQL::QualifiedIdentifier.new(ds.model.table_name, k), v]}), :first)} 35: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.