final protected function getKernelSQLFileForDBMS($relativeFilePath)
    {
        $databasePlatform = $this->db->getDatabasePlatform()->getName();
        $filePath = "{$this->baseDataDir}/{$databasePlatform}/{$relativeFilePath}";

        if (!is_readable($filePath)) {
            throw new InvalidArgumentException(
                '$relativeFilePath',
                sprintf(
                    'DBMS-specific file for %s database platform does not exist or is not readable: %s',
                    $databasePlatform,
                    $filePath
                )
            );
        }

        // apply realpath for more user-friendly Console output
        return realpath($filePath);
    }
final protected function getKernelSQLFileForDBMS($relativeFilePath)
    {
        $databasePlatform = $this->db->getDatabasePlatform()->getName();
        $filePath = "{$this->baseDataDir}/{$databasePlatform}/{$relativeFilePath}";

        if (!is_readable($filePath)) {
            throw new InvalidArgumentException(
                '$relativeFilePath',
                sprintf(
                    'DBMS-specific file for %s database platform does not exist or is not readable: %s',
                    $databasePlatform,
                    $filePath
                )
            );
        }

        // apply realpath for more user-friendly Console output
        return realpath($filePath);
    }
final protected function getKernelSQLFileForDBMS ( $ relativeFilePath ) { $ databasePlatform = $ this -> db -> getDatabasePlatform ( ) -> getName ( ) ; $ filePath = "{$this->baseDataDir}/{$databasePlatform}/{$relativeFilePath}" ; if ( ! is_readable ( $ filePath ) ) { throw new InvalidArgumentException ( '$relativeFilePath' , sprintf ( 'DBMS-specific file for %s database platform does not exist or is not readable: %s' , $ databasePlatform , $ filePath ) ) ; } // apply realpath for more user-friendly Console output return realpath ( $ filePath ) ; }
Get DBMS-specific SQL data file path.

@param string $relativeFilePath SQL file path relative to {baseDir}/{dbms} directory

@return string absolute existing file path

@throws \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException

@throws \Doctrine\DBAL\DBALException

@since 6.13
Get DBMS - specific SQL data file path .