Browse files

Utility function for code that hasn't been committed yet

  • Loading branch information...
1 parent 3e8185a commit ea82ffd8d5475e79dce01de3986705f7e96ff947 @jamiemccarthy jamiemccarthy committed Dec 14, 2004
Showing with 13 additions and 0 deletions.
  1. +13 −0 Slash/DB/MySQL/MySQL.pm
View
13 Slash/DB/MySQL/MySQL.pm
@@ -2798,6 +2798,19 @@ sub getDB {
#################################################################
+# Utility function to return an array of all the virtual users for
+# all the DBs of one specific type.
+
+sub getDBVUsForType {
+ my($self, $type) = @_;
+ my $dbs = $self->getDBs();
+ return map { $dbs->{$_}{virtual_user} }
+ grep { $dbs->{$_}{type} eq $type }
+ keys %$dbs;
+}
+
+#################################################################
+
# Writing to the dbs_readerstatus table.
sub createDBReaderStatus {

0 comments on commit ea82ffd

Please sign in to comment.