HELP: How to change database name in every invocation? #60
Labels
enhancement
New feature or request
good first issue
Good for newcomers
question
Further information is requested
I work on a multi-tenant application with each tenant having their own database living on the same database instance.
So, currently in my Lambdas, I connect AND disconnect during the Lambda invocation as I need the request information to determine which database to connect to. The host, port, username, password are all constants. Only the database name changes between invocations. This setup currently works easily with the
mysql
library. However, it is not optimal as I cannot reuse connections.Will
changeUser
help me in this case?Is it possible to connect to the database instance during cold-start but switch database during invocation?
Does
changeUser
disconnect from the instance?Thank you for the help.
The text was updated successfully, but these errors were encountered: