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

### Methods

delete merge_db_update

### Public Instance methods

delete()

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

[Source]

         # File lib/sequel/plugins/identity_map.rb, line 98
     98:         def delete
     99:           super
    100:           if idm = model.identity_map
    101:             idm.delete(model.identity_map_key(pk))
    102:           end
    103:           self
    104:         end

merge_db_update(row)

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 108
    108:         def merge_db_update(row)
    109:           @values = row.merge(@values)
    110:         end

[Validate]