yii\debug\panels\DbPanel::hasExplain PHP Method

hasExplain() protected method

Since: 2.0.5
protected hasExplain ( ) : boolean
return boolean Whether the DB component has support for EXPLAIN queries
    protected function hasExplain()
    {
        $db = $this->getDb();
        if (!$db instanceof \yii\db\Connection) {
            return false;
        }
        switch ($db->getDriverName()) {
            case 'mysql':
            case 'sqlite':
            case 'pgsql':
            case 'cubrid':
                return true;
            default:
                return false;
        }
    }