I'm working on a Go project that interacts with a mysql database in several functions and go routines. I'm having a problem tracking down database connections being left open though.
Is it possible to set a connection string in Golang when working with mysql so that the connections can be identified in mysql when viewing the processlist?
I've reviewed the GO docs around the SQL package and cant find a function to do this. AN alternative is to set the connection lifetime, but for cleanliness I'd like to be able to identify the connections.