On Tue, Jul 18, 2023 at 2:14 PM [email protected] <[email protected]>
wrote:

> Ok,  so jumping back to this. So I can control my dev database, but not
> the real one used in auto testing.
>
> If I wanted to try to go the route of setting `SET SESSION CHARACTERISTICS
> AS TRANSACTION READ ONLY;`
> Is there a way to use have that (or something else) run on all connections
> in pool?
>

The best way to do this is to use the :connect_sqls Database option.  The
value for the option is an array of SQL strings to execute when the
connection is created.


> I see there is a `after_connect` method, but looks like it is depricated
> and gone in Sequel 6.


The :after_connect Database option still exists, is not deprecated, and
does the same thing.

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/CADGZSSevvnGAdCq0W7-jOyNp785F1ZEY3n7h0LnxnPemWC00bA%40mail.gmail.com.

Reply via email to