On Feb 19, 7:44 pm, Jason Dixon <[email protected]> wrote:
> On Sun, Feb 19, 2012 at 07:34:40PM -0800, Jeremy Evans wrote:
> > On Feb 19, 5:28?pm, Jason Dixon <[email protected]> wrote:
> > > Does anyone have an example of this plugin in action? It's not
> > > immediately clear if/how to use the .apply method.
>
> >   Sequel::Model.plugin :prepared_statements
>
> > If you do that before loading your models, all of your models will use
> > prepared statements for insert/update/delete statements, and lookups
> > by primary key.  I use this in all of my apps.
>
> Right, I have that. But I also saw the .apply public method. Is this
> mostly unnecessary for basic use?

The apply method in this case initializes the internal data structures
that store the prepared statement objects.  It's necessary, but it's
not really designed for external use.  The plugin API currently
requires the apply and configure methods be public if they are
defined.

Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to