Module Sequel::Plugins::IdentityMap::InstanceMethods
In: lib/sequel/plugins/identity_map.rb

Methods

Public Instance methods

Remove instances from the identity map cache if they are deleted.

[Source]

     # File lib/sequel/plugins/identity_map.rb, line 213
213:         def delete
214:           super
215:           if (idm = model.identity_map) && (k = model.identity_map_key(pk))
216:             idm.delete(k)
217:           end
218:           self
219:         end

Merge the current values into the values provided in the row, ensuring that current values are not overridden by new values.

[Source]

     # File lib/sequel/plugins/identity_map.rb, line 223
223:         def merge_db_update(row)
224:           @values = row.merge(@values)
225:         end

[Validate]