TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Core\Database\PdoHelper Class Reference

Static Public Member Functions

static importSql (\PDO $databaseHandle, $pdoDriver, $pathAndFilename)
 

Detailed Description

A helper class for handling PDO databases Backport of FLOW3 class PdoHelper, last synced version: 3528

Definition at line 21 of file PdoHelper.php.

Member Function Documentation

◆ importSql()

static TYPO3\CMS\Core\Database\PdoHelper::importSql ( \PDO  $databaseHandle,
  $pdoDriver,
  $pathAndFilename 
)
static

Pumps the SQL into the database. Use for DDL only.

Important: key definitions with length specifiers (needed for MySQL) must be given as "field"(xyz) - no space between double quote and parenthesis - so they can be removed automatically.

Parameters
PDO$databaseHandle
string$pdoDriver
string$pathAndFilename
Returns
void

Definition at line 35 of file PdoHelper.php.

References $sql.

Referenced by TYPO3\CMS\Core\Cache\Backend\PdoBackend\createCacheTables().