On Thursday, July 25, 2013 9:18:50 AM UTC-7, Heberto del Rio wrote:
>
> That works!, thanks
>
> Another question:
>
> 1.- I want to redefine the method connect when it is called either by
> Sequel.connect('sqlite://....') or by Sequel.sqlite(.... so that it always
> includes: after_connect: a_callable_object to have a default behavior for
> all the stablished connections.
>
Add a database extension to all databases via Database.extension (the class
method). This extension can just override Database#connect appropriately.
With this approach, you don't need to use an :after_connect proc.
2.- I want to redefine the method complex_expression_sql_append in
> lib/sequel/adapters/shared/sqlite.rb
>
The database extension can also include a dataset extension that overrides
that method.
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 http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/groups/opt_out.