On Wed, Dec 27, 2023 at 7:35 AM Sofia Dimant <sofiadim...@gmail.com> wrote:

> what if I do db.disconnect after this loop?
> will the loop still run?
>

The loop should still run.  db.disconnect removes connections from the
pool, so new connections should pick up the most recent password.

Thanks,
Jeremy


>
> ב-יום שני, 20 בנובמבר 2023 בשעה 18:08:26 UTC+2, Jeremy Evans כתב/ה:
>
>> On Mon, Nov 20, 2023 at 3:21 AM Sofia Dimant <sofia...@gmail.com> wrote:
>>
>>> thank you
>>> are the parameters set in Sequel.connect are global for all the
>>> connection?
>>> I'm asking because I Im using RDS with IAM, and Im not sure where should
>>> I add the password update. my application performs Sequel.connect couple of
>>> times, and I will update the password this way for each Sequel.connect
>>> command
>>>
>>> Thread.new do
>>> loop do
>>> db.opts[:password] = get_current_iam_password
>>> sleep 890
>>> end
>>> end
>>>
>>> thanks
>>>
>>
>> That looks like it should work, except maybe when using the jdbc adapter.
>>
>> 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 sequel-talk+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sequel-talk/14e9623d-a634-48ab-a572-3776d4fb2430n%40googlegroups.com
> <https://groups.google.com/d/msgid/sequel-talk/14e9623d-a634-48ab-a572-3776d4fb2430n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 sequel-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/CADGZSScZGdVsAdrGSLdbEb8hg8dmtOL42uaAd8YL3gykfwWbJg%40mail.gmail.com.

Reply via email to