Hacker News new | ask | show | jobs
by 0xjnml 661 days 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

1 comments

No. That was the reply after I corrected it, as in it originally told me to call Close after every *sql.DB handle.