$log->debug("DB generation is $generation");
}
+ method walk_unwanted_artists($callback) {
+ $self->connect;
+
+ my $count = 0;
+
+ my $sth = $db->prepare('SELECT artist FROM unwanted_artists ORDER BY 1');
+ my $artist;
+ $sth->execute;
+ $sth->bind_columns(\$artist);
+ while ( $sth->fetchrow_arrayref ) {
+ $count++;
+ $callback->($artist);
+ }
+
+ return $count;
+ }
+
method disconnect {
return unless $db;