On Monday, March 19, 2018 at 9:53:54 AM UTC-7, [email protected] wrote:
>
> Hi. I am trying to write a Sequel plugin that works using IdentityMap 
> always. For that, it would be very interesting overwrite some methods that 
> instance and return Sequel::Model objects for accesor authomatic methods 
> created by one_to_many, many_to_one... directives.
>
> Which do you think are best code points for resolving my needs?
>
> Thank you very much.
>

Sequel had an identity_map plugin from 3.1.0 to 3.48.0.  
 See 
https://github.com/jeremyevans/sequel/blob/3.48.0/lib/sequel/plugins/identity_map.rb

That has some of the code you may be looking for, though it probably needs 
updating considering the last 5 years of development.  If you want my 
opinion, after creating an identity map plugin and maintaining it for 4 
years, I think it's is a bad idea that causes more problems than it solves, 
which is the reason I removed it.

Thanks,
Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to