‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Database\Schema\SchemaManager\CustomPortableTableIndexesListTrait Class Reference

Public Attributes

if(!($platform instanceof DoctrineMariaDBPlatform|| $platform instanceof DoctrineMySQLPlatform)) foreach($tableIndexesList as &$index) return $tableIndexesList
 

Protected Member Functions

array< string, customGetPortableTableIndexesList(array $tableIndexesList, array $tableIndexes, string $tableName, Connection $connection):array { $platform=$connection-> getDatabasePlatform ()
 
 buildIndex (array $tableIndexRows)
 
 getListTableIndexesSQL (AbstractPlatform $platform, string $table, ?string $database=null)
 

Detailed Description

Provide custom portable index listing for MySQL and MariDB platforms using the custom MySQLSchemaManager.

only for use in extended SchemaManager classes and not part of public core API.

Definition at line 33 of file CustomPortableTableIndexesListTrait.php.

Member Function Documentation

◆ buildIndex()

TYPO3\CMS\Core\Database\Schema\SchemaManager\CustomPortableTableIndexesListTrait::buildIndex ( array  $tableIndexRows)
protected

Build a Doctrine Index Object based on the information gathered from the MySQL information schema.

Exceptions

Definition at line 85 of file CustomPortableTableIndexesListTrait.php.

◆ getDatabasePlatform()

array<string, customGetPortableTableIndexesList(array $tableIndexesList, array $tableIndexes, string $tableName, Connection $connection): array { $platform = $connection-> TYPO3\CMS\Core\Database\Schema\SchemaManager\CustomPortableTableIndexesListTrait::getDatabasePlatform ( )
protected
Parameters
array<string,Index>‪$tableIndexesList
array<int,array<string,mixed>>‪$tableIndexes
Returns
‪array<string, Index>

References TYPO3\CMS\Core\Database\Schema\SchemaManager\CustomPortableTableIndexesListTrait\$tableIndexesList.

◆ getListTableIndexesSQL()

TYPO3\CMS\Core\Database\Schema\SchemaManager\CustomPortableTableIndexesListTrait::getListTableIndexesSQL ( AbstractPlatform  $platform,
string  $table,
?string  $database = null 
)
protected

Copied from doctrine/dbal 3.x \Doctrine\DBAL\Platforms\AbstractMySQLPlatform because it has been deprecated and will be removed in doctrine/dbal 4.x.

Definition at line 137 of file CustomPortableTableIndexesListTrait.php.

Member Data Documentation

◆ $tableIndexesList

if (!( $platform instanceof DoctrineMariaDBPlatform||$platform instanceof DoctrineMySQLPlatform)) foreach ( $tableIndexesList as & $index) return TYPO3\CMS\Core\Database\Schema\SchemaManager\CustomPortableTableIndexesListTrait::$tableIndexesList