4 ms·
Except AI was correct this time. "It is rare to Close a DB, as the DB handle is meant to be long-lived and shared between many goroutines." source: https://pk
by 0xjnml 2y ago
Except AI was correct this time.
"It is rare to Close a DB, as the DB handle is meant to be long-lived and shared between many goroutines."
source: https://pkg.go.dev/database/sql#DB.Close https://pkg.go.dev/database/sql#DB.Close
- pram 2y agoNo. That was the reply after I corrected it, as in it originally told me to call Close after every *sql.DB handle.
- deleted 2y ago[deleted]