public static function identifySchema(?string $schemaClass): string
    {
        switch ($schemaClass) {
            case 'yii\db\mssql\Schema':
                return self::SCHEMA_MSSQL;

            case 'yii\db\oci\Schema':
                return self::SCHEMA_OCI;

            case 'yii\db\pgsql\Schema':
                return self::SCHEMA_PGSQL;

            case 'yii\db\sqlite\Schema':
                return self::SCHEMA_SQLITE;

            case 'yii\db\cubrid\Schema':
                return self::SCHEMA_CUBRID;

            case 'yii\db\mysql\Schema':
                return self::SCHEMA_MYSQL;

            default:
                return self::SCHEMA_UNSUPPORTED;
        }
    }
public static function identifySchema(?string $schemaClass): string
    {
        switch ($schemaClass) {
            case 'yii\db\mssql\Schema':
                return self::SCHEMA_MSSQL;

            case 'yii\db\oci\Schema':
                return self::SCHEMA_OCI;

            case 'yii\db\pgsql\Schema':
                return self::SCHEMA_PGSQL;

            case 'yii\db\sqlite\Schema':
                return self::SCHEMA_SQLITE;

            case 'yii\db\cubrid\Schema':
                return self::SCHEMA_CUBRID;

            case 'yii\db\mysql\Schema':
                return self::SCHEMA_MYSQL;

            default:
                return self::SCHEMA_UNSUPPORTED;
        }
    }
public static function identifySchema ( ? string $ schemaClass ) : string { switch ( $ schemaClass ) { case 'yii\db\mssql\Schema' : return self :: SCHEMA_MSSQL ; case 'yii\db\oci\Schema' : return self :: SCHEMA_OCI ; case 'yii\db\pgsql\Schema' : return self :: SCHEMA_PGSQL ; case 'yii\db\sqlite\Schema' : return self :: SCHEMA_SQLITE ; case 'yii\db\cubrid\Schema' : return self :: SCHEMA_CUBRID ; case 'yii\db\mysql\Schema' : return self :: SCHEMA_MYSQL ; default : return self :: SCHEMA_UNSUPPORTED ; } }
Returns schema code based on its class name.
@param null|string $schemaClass
@return string
@since 3.1
Returns schema code based on its class name .