module Sequel::Plugins::PreparedStatementsSafe::InstanceMethods

  1. lib/sequel/plugins/prepared_statements_safe.rb


Public Instance

  1. before_create
  2. save_changes

Public Instance methods


Merge the current values into the default values to reduce the number of free columns.

[show source]
   # File lib/sequel/plugins/prepared_statements_safe.rb
68 def before_create
69   @values = model.prepared_statements_column_defaults.merge(@values)
70   super
71 end

Always do a full save of all columns to reduce the number of prepared statements that can be used.

[show source]
   # File lib/sequel/plugins/prepared_statements_safe.rb
75 def save_changes(opts=OPTS)
76   save(opts) || false if modified?
77 end