TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Core\Database\PdoHelper Class Reference
Inheritance diagram for TYPO3\CMS\Core\Database\PdoHelper:
t3lib_PdoHelper

Static Public Member Functions

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

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! A helper class for handling PDO databases Backport of FLOW3 class PdoHelper, last synced version: 3528

Author
Karsten Dambekalns karst.nosp@m.en@t.nosp@m.ypo3..nosp@m.org

Definition at line 22 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
Author
Karsten Dambekalns karst.nosp@m.en@t.nosp@m.ypo3..nosp@m.org

Definition at line 37 of file PdoHelper.php.

References $sql.

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