The _______ method in the database/sql package is used to close a database connection.

  • Close
  • Shutdown
  • End
  • Disconnect
The correct option is "Close". In Golang's database/sql package, the Close method is used to gracefully close a database connection, releasing any resources associated with it. It's essential for efficient resource management.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *