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 97
 97:         def delete
 98:           super
 99:           if idm = model.identity_map
100:             idm.delete(model.identity_map_key(pk))
101:           end
102:           self
103:         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 107
107:         def merge_db_update(row)
108:           @values = row.merge(@values)
109:         end

[Validate]