Close closes the database, releasing any open resources. It is rare to Close a DB, as the DB handle is meant to be long-lived and shared between many goroutines.
()
| 164 | // It is rare to Close a DB, as the DB handle is meant to be |
| 165 | // long-lived and shared between many goroutines. |
| 166 | func (db *DB) Close() error { |
| 167 | return db.db.Close() |
| 168 | } |
| 169 | |
| 170 | // SetMaxIdleConns sets the maximum number of connections in the idle |
| 171 | // connection pool. |
no outgoing calls