module Sequel::Plugins::PreparedStatements::InstanceMethods
Private Instance Methods
_delete_without_checking()
click to toggle source
Use a prepared statement to delete the row.
# File lib/sequel/plugins/prepared_statements.rb, line 135 def _delete_without_checking model.send(:prepared_delete).call(pk_hash) end
_insert_raw(ds)
click to toggle source
Use a prepared statement to insert the values into the model's dataset.
# File lib/sequel/plugins/prepared_statements.rb, line 140 def _insert_raw(ds) model.send(:prepared_insert, @values.keys).call(@values) end
_insert_select_raw(ds)
click to toggle source
Use a prepared statement to insert the values into the model's dataset and return the new column values.
# File lib/sequel/plugins/prepared_statements.rb, line 146 def _insert_select_raw(ds) if ps = model.send(:prepared_insert_select, @values.keys) ps.call(@values) end end
_refresh_get(ds)
click to toggle source
Use a prepared statement to refresh this model's column values.
# File lib/sequel/plugins/prepared_statements.rb, line 153 def _refresh_get(ds) model.send(:prepared_refresh).call(pk_hash) end
_update_without_checking(columns)
click to toggle source
Use a prepared statement to update this model's columns in the database.
# File lib/sequel/plugins/prepared_statements.rb, line 158 def _update_without_checking(columns) model.send(:prepared_update, columns.keys).call(columns.merge(pk_hash)) end