1 Answer
- Newest
- Most votes
- Most comments
0
You should just create the DB connection outside of any function, or store it in a global variable if that variables has not been assigned yet.
Relevant content
- Accepted Answerasked 2 years ago
- asked a year ago
- asked 4 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 7 months ago
Could you help me with an example? I spend whole day and couldn't solve
Do we need to close connection after opening connection?