module Sequel::Plugins::PreparedStatementsSafe::InstanceMethods

  1. lib/sequel/plugins/prepared_statements_safe.rb

Methods

Public Instance

  1. before_create
  2. save_changes

Public Instance methods

before_create()

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
69 def before_create
70   @values = model.prepared_statements_column_defaults.merge(@values)
71   super
72 end
save_changes(opts=OPTS)

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
76 def save_changes(opts=OPTS)
77   save(opts) || false if modified?
78 end