'Use typeorm, how to reconnect when we have password rotation?

We are using typeorm to connect postgres for now, we want change database password every three months, so how to make the connection pool can use new password automatically?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source