title: How do i close database instance in gorm 1.20.0
body: <p>As i have not found in Close() function with *gorm instance, any help would be appreciated</p>
  <pre><code>dbURI := fmt.Sprintf(&quot;user=%s password=%s dbname=%s port=%s sslmode=%s TimeZone=%s&quot;,
      &quot;username&quot;, &quot;password&quot;, &quot;dbname&quot;, &quot;5432&quot;, &quot;disable&quot;, &quot;Asia/Kolkata&quot;)
  fmt.Println(dbURI)
  connection, err := gorm.Open(postgres.Open(dbURI), &amp;gorm.Config{})
  
  if err != nil {
      fmt.Println(&quot;Error connecting database&quot;)
      panic(err.Error())
  } else {
      fmt.Println(&quot;Connected to database&quot;)
  }
  </code></pre>
  <p>Note: connection.Close() is not available for GORM 1.20.0</p>