final public static function database(Configuration $configuration) {

        try {

            $dbh = Database::init($configuration);

            $dbh->connect();

            $manager = $dbh->getSchemaManager();

            $manager->getTable($configuration->get('database-jobs-table'));
            $manager->getTable($configuration->get('database-worklogs-table'));
            $manager->getTable($configuration->get('database-queue-table'));

        } catch (Exception $e) {

            return false;

        } finally {

            $dhb->close();

        }

        return true;

    }
final public static function database(Configuration $configuration) {

        try {

            $dbh = Database::init($configuration);

            $dbh->connect();

            $manager = $dbh->getSchemaManager();

            $manager->getTable($configuration->get('database-jobs-table'));
            $manager->getTable($configuration->get('database-worklogs-table'));
            $manager->getTable($configuration->get('database-queue-table'));

        } catch (Exception $e) {

            return false;

        } finally {

            $dhb->close();

        }

        return true;

    }
final public static function database ( Configuration $ configuration ) { try { $ dbh = Database :: init ( $ configuration ) ; $ dbh -> connect ( ) ; $ manager = $ dbh -> getSchemaManager ( ) ; $ manager -> getTable ( $ configuration -> get ( 'database-jobs-table' ) ) ; $ manager -> getTable ( $ configuration -> get ( 'database-worklogs-table' ) ) ; $ manager -> getTable ( $ configuration -> get ( 'database-queue-table' ) ) ; } catch ( Exception $ e ) { return false ; } finally { $ dhb -> close ( ) ; } return true ; }
Check if database is available and initialized correctly

@return  bool
Check if database is available and initialized correctly