On Wednesday, July 12, 2017 at 7:37:37 PM UTC-7, Tom Wardrop wrote:
>
> Ok, so it seems :after_connect provides the underlying adapter connection 
> object, rather than a Sequel::Database object. Ideally it'd be nice to keep 
> my post-connection queries adapter agnostic and work with a 
> Sequel::Database instance. Is there a way to achieve this?
>

You could use Database#log_connection_execute inside after_connect. It is a 
private method that takes a connection object and SQL string.

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