NAME

Krang::DB - provides access to Krang database


SYNOPSIS

  # get a database handle
  use Krang::ClassLoader DB => qw(dbh forget_dbh);
  $dbh = dbh();
  # forget about the current dbh for this instance, triggering a
  # reconnect on the next call to dbh()
  forget_dbh();


DESCRIPTION

Use this class to get a DBI handle for the active instance. If the database for this instance does not yet exist, it will be created.


INTERFACE