// GetClusterCount returns the total number of clusters in the database
GetClusterCount returns the total number of clusters in the database
// GetClusterCount returns the total number of clusters in the database
func GetClusterCount(db *gorm.DB) (int, error) {
	count := 0
	countDB := db.Model(&clustersTable{}).Count(&count)
	if countDB.Error != nil {
		return 0, countDB.Error
	}
	return count, nil
}
func GetClusterCount ( db * gorm . DB ) ( int , error ) { count := 0 countDB := db . Model ( & clustersTable { } ) . Count ( & count ) if countDB . Error != nil { return 0 , countDB . Error } return count , nil }
GetClusterCount returns the total number of clusters in the database
GetClusterCount returns the total number of clusters in the database