title: Does Gorm automatically close the connection?
body: <p>I have been using GORM for my application based on AWS lambda. I used gorm.Open() for every Handler function,</p>
  <pre><code>db, err := gorm.Open(mysql.Open(dsn), &amp;gorm.Config{
          Logger: logger.Default.LogMode(logger.Info),
      })
  </code></pre>
  <p>so can someone help me confirm that does gorm.Open(...) automatically close the connection or not? Or I must use generic database interface bellow?</p>
  <pre><code>// Get generic database object sql.DB to use its functions
  sqlDB, err := db.DB()
  
  // Ping
  sqlDB.Ping()
  
  // Close
  sqlDB.Close()
  
  // Returns database statistics
  sqlDB.Stats()
  </code></pre>