protected function isDatabaseReady()
    {
        // Such as during setup of testsession prior to DB connection.
        if (!DB::is_active()) {
            return false;
        }

        // If we have a DB of the wrong type then complain
        if (!(DB::get_conn() instanceof MySQLDatabase)) {
            throw new Exception('HybridSessions\Store\DatabaseStore currently only works with MySQL databases');
        }

        // Prevent freakout during dev/build
        return ClassInfo::hasTable('HybridSessionDataObject');
    }
protected function isDatabaseReady()
    {
        // Such as during setup of testsession prior to DB connection.
        if (!DB::is_active()) {
            return false;
        }

        // If we have a DB of the wrong type then complain
        if (!(DB::get_conn() instanceof MySQLDatabase)) {
            throw new Exception('HybridSessions\Store\DatabaseStore currently only works with MySQL databases');
        }

        // Prevent freakout during dev/build
        return ClassInfo::hasTable('HybridSessionDataObject');
    }
protected function isDatabaseReady ( ) { // Such as during setup of testsession prior to DB connection. if ( ! DB :: is_active ( ) ) { return false ; } // If we have a DB of the wrong type then complain if ( ! ( DB :: get_conn ( ) instanceof MySQLDatabase ) ) { throw new Exception ( 'HybridSessions\Store\DatabaseStore currently only works with MySQL databases' ) ; } // Prevent freakout during dev/build return ClassInfo :: hasTable ( 'HybridSessionDataObject' ) ; }
Determine if the DB is ready to use.

@return bool
@throws Exception
Determine if the DB is ready to use .