- Notifications
You must be signed in to change notification settings - Fork2.3k
-
I have a long running daemon written in Go, that listens to a port and spins up multiple go routines for every new connection to handle the data. There is a global variable context that has db Conn(*sql.DB) that is assigned connection context returned by database/sql library’s open() function during initialization time. closest one that i got is:https://stackoverflow.com/questions/61921525/how-to-update-db-connection-in-gorm-with-new-aws-token/77287404#77287404. but its good for only postgress. |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment
-
This solution is also good for MySQL. |
BetaWas this translation helpful?Give feedback.