LJ::get_dbirole_dbh — Internal function for get_dbh(). Uses the DBIRole to fetch a dbh, with hooks into db stats-generation if that's turned on.
LJ::get_dbirole_dbh
(opts, role);
opts. A hashref of options.
role. The database role.
cgi-bin/ljlib.pl
A dbh.