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 93
93:         def delete
94:           super
95:           if idm = model.identity_map
96:             idm.delete(model.identity_map_key(pk))
97:           end
98:           self
99:         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 103
103:         def merge_db_update(row)
104:           @values = row.merge(@values)
105:         end

[Validate]