‪TYPO3CMS  10.4
TYPO3\CMS\Core\Database\Platform\PlatformInformation Class Reference

Static Public Member Functions

static string getCharset (AbstractPlatform $platform)
 
static string getDatabaseCreateStatementWithCharset (AbstractPlatform $platform, string $databaseName)
 
static int getMaxIdentifierLength (AbstractPlatform $platform)
 
static int getMaxBindParameters (AbstractPlatform $platform)
 

Static Protected Member Functions

static string getPlatformIdentifier (AbstractPlatform $platform)
 

Static Protected Attributes

static array $identifierLimits
 
static array $bindParameterLimits
 
static string[] $charSetMap
 
static string[] $databaseCreateWithCharsetMap
 

Detailed Description

Helper to handle platform specific details

Definition at line 32 of file PlatformInformation.php.

Member Function Documentation

◆ getCharset()

static string TYPO3\CMS\Core\Database\Platform\PlatformInformation::getCharset ( AbstractPlatform  $platform)
static

Return the encoding of the given platform

Parameters
AbstractPlatform$platform
Returns
‪string

Definition at line 75 of file PlatformInformation.php.

◆ getDatabaseCreateStatementWithCharset()

static string TYPO3\CMS\Core\Database\Platform\PlatformInformation::getDatabaseCreateStatementWithCharset ( AbstractPlatform  $platform,
string  $databaseName 
)
static

Return the statement to create a database with the desired encoding for the given platform

Parameters
AbstractPlatform$platform
string$databaseName
Returns
‪string

Definition at line 89 of file PlatformInformation.php.

Referenced by TYPO3\CMS\Install\Controller\InstallerController\createNewDatabase().

◆ getMaxBindParameters()

◆ getMaxIdentifierLength()

static int TYPO3\CMS\Core\Database\Platform\PlatformInformation::getMaxIdentifierLength ( AbstractPlatform  $platform)
static

◆ getPlatformIdentifier()

static string TYPO3\CMS\Core\Database\Platform\PlatformInformation::getPlatformIdentifier ( AbstractPlatform  $platform)
staticprotected

Return the platform shortname to use as a lookup key

Parameters
\Doctrine\DBAL\Platforms\AbstractPlatform$platform
Returns
‪string
Exceptions

Definition at line 140 of file PlatformInformation.php.

Member Data Documentation

◆ $bindParameterLimits

array TYPO3\CMS\Core\Database\Platform\PlatformInformation::$bindParameterLimits
staticprotected
Initial value:
= array(
'mysql' => 65535,
'postgresql' => 34464,
'sqlserver' => 2100,
'sqlite' => 999,
)

Definition at line 45 of file PlatformInformation.php.

◆ $charSetMap

string [] TYPO3\CMS\Core\Database\Platform\PlatformInformation::$charSetMap
staticprotected
Initial value:
= array(
'mysql' => 'utf8mb4',
'postgresql' => 'UTF8',
'sqlserver' => 'UTF-8',
'sqlite' => 'utf8',
)

Definition at line 54 of file PlatformInformation.php.

◆ $databaseCreateWithCharsetMap

string [] TYPO3\CMS\Core\Database\Platform\PlatformInformation::$databaseCreateWithCharsetMap
staticprotected
Initial value:
= array(
'mysql' => 'CHARACTER SET %s',
'postgresql' => "ENCODING '%s'",
'sqlserver' => '',
)

Definition at line 63 of file PlatformInformation.php.

◆ $identifierLimits

array TYPO3\CMS\Core\Database\Platform\PlatformInformation::$identifierLimits
staticprotected
Initial value:
= array(
'mysql' => 63,
'postgresql' => 63,
'sqlserver' => 128,
'sqlite' => 1024,
)

Definition at line 36 of file PlatformInformation.php.