func (db *Database) Close() error {
	if db.transaction != nil {
		_ = db.transaction.Commit()
		db.transaction = nil
	}
	err := db.connection.Close()
	db.connection = nil
	return err
}
// Close releases the connection to the Database on which it is called.
Close releases the connection to the Database on which it is called.
// Close releases the connection to the Database on which it is called .
func (db *Database) Close() error {
	if db.transaction != nil {
		_ = db.transaction.Commit()
		db.transaction = nil
	}
	err := db.connection.Close()
	db.connection = nil
	return err
}
func ( db * Database ) Close ( ) error { if db . transaction != nil { _ = db . transaction . Commit ( ) db . transaction = nil } err := db . connection . Close ( ) db . connection = nil return err }
Close releases the connection to the Database on which it is called.
Close releases the connection to the Database on which it is called .