Hi, I stumbled upon a case where this is required in secure environments that exchange tokens during a short period of time. For instance, RDS allows AWS IAM tokens to be used as Postgres passwords that would last for 15 minutes.
With Python I could achieve that with a creator method that would take all but password credentials from OS env vars, and the password would be received from AWS API call:
This creation function will be passed to the underlying connection pool and will be used to create all new database connections.
Is there a way to relatively easily encode this behaviour for hasql-pool?