original_string: 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');
      }
code: 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');
      }
code_tokens: 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' ) ; }
docstring: Determine if the DB is ready to use.
  
  @return bool
  @throws Exception
docstring_tokens: Determine if the DB is ready to use .