‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\MockMySQLPlatform Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\MockMySQLPlatform:
TYPO3\CMS\Core\Database\Platform\MySQL80Platform TYPO3\CMS\Core\Database\Platform\MySQLCompatibleAlterTablePlatformAwareTrait

Public Member Functions

 getBlobTypeDeclarationSQL (array $field)
 
 getBooleanTypeDeclarationSQL (array $columnDef)
 
 getIntegerTypeDeclarationSQL (array $columnDef)
 
 getBigIntTypeDeclarationSQL (array $columnDef)
 
 getSmallIntTypeDeclarationSQL (array $columnDef)
 
 _getCommonIntegerTypeDeclarationSQL (array $columnDef)
 
 getVarcharTypeDeclarationSQL (array $field)
 
 getClobTypeDeclarationSQL (array $field)
 
 getJsonTypeDeclarationSQL (array $field)
 
 getBinaryTypeDeclarationSQL (array $field)
 
 getCurrentDatabaseExpression ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Database\Platform\MySQL80Platform
list< string > getAlterTableSQL (TableDiff|DoctrineTableDiff $diff)
 

Protected Member Functions

 initializeDoctrineTypeMappings ()
 
string getVarcharTypeDeclarationSQLSnippet ($length)
 
 getReservedKeywordsClass ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Core\Database\Platform\MySQLCompatibleAlterTablePlatformAwareTrait
list< string > getCustomAlterTableSQLEngineOptions (DoctrineMariaDBPlatform|DoctrineMySQLPlatform $platform, TableDiff|DoctrineTableDiff $tableDiff, array $result)
 

Detailed Description

Definition at line 23 of file MockMySQLPlatform.php.

Member Function Documentation

◆ _getCommonIntegerTypeDeclarationSQL()

TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\MockMySQLPlatform::_getCommonIntegerTypeDeclarationSQL ( array  $columnDef)

Returns the SQL snippet that declares common properties of an integer column.

Definition at line 70 of file MockMySQLPlatform.php.

◆ getBigIntTypeDeclarationSQL()

TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\MockMySQLPlatform::getBigIntTypeDeclarationSQL ( array  $columnDef)

Returns the SQL snippet that declares an 8 byte integer column.

Definition at line 54 of file MockMySQLPlatform.php.

◆ getBinaryTypeDeclarationSQL()

TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\MockMySQLPlatform::getBinaryTypeDeclarationSQL ( array  $field)

Returns the SQL snippet used to declare a BINARY/VARBINARY column type.

Parameters
array$field‪The column definition.

Definition at line 109 of file MockMySQLPlatform.php.

◆ getBlobTypeDeclarationSQL()

TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\MockMySQLPlatform::getBlobTypeDeclarationSQL ( array  $field)

Gets the SQL Snippet used to declare a BLOB column type.

Exceptions

Definition at line 30 of file MockMySQLPlatform.php.

◆ getBooleanTypeDeclarationSQL()

TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\MockMySQLPlatform::getBooleanTypeDeclarationSQL ( array  $columnDef)

Returns the SQL snippet that declares a boolean column.

Definition at line 38 of file MockMySQLPlatform.php.

◆ getClobTypeDeclarationSQL()

TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\MockMySQLPlatform::getClobTypeDeclarationSQL ( array  $field)

Returns the SQL snippet used to declare a CLOB column type.

Definition at line 86 of file MockMySQLPlatform.php.

◆ getCurrentDatabaseExpression()

TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\MockMySQLPlatform::getCurrentDatabaseExpression ( )

Definition at line 142 of file MockMySQLPlatform.php.

◆ getIntegerTypeDeclarationSQL()

TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\MockMySQLPlatform::getIntegerTypeDeclarationSQL ( array  $columnDef)

Returns the SQL snippet that declares a 4 byte integer column.

Definition at line 46 of file MockMySQLPlatform.php.

◆ getJsonTypeDeclarationSQL()

TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\MockMySQLPlatform::getJsonTypeDeclarationSQL ( array  $field)

Returns the SQL snippet to declare a JSON field.

By default this maps directly to a CLOB and only maps to more special datatypes when the underlying databases support this datatype.

Parameters
array$field

Definition at line 99 of file MockMySQLPlatform.php.

◆ getReservedKeywordsClass()

TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\MockMySQLPlatform::getReservedKeywordsClass ( )
protected

Returns the class name of the reserved keywords list.

Exceptions

Definition at line 137 of file MockMySQLPlatform.php.

◆ getSmallIntTypeDeclarationSQL()

TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\MockMySQLPlatform::getSmallIntTypeDeclarationSQL ( array  $columnDef)

Returns the SQL snippet that declares a 2 byte integer column.

Definition at line 62 of file MockMySQLPlatform.php.

◆ getVarcharTypeDeclarationSQL()

TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\MockMySQLPlatform::getVarcharTypeDeclarationSQL ( array  $field)

Returns the SQL snippet used to declare a VARCHAR column type.

Definition at line 78 of file MockMySQLPlatform.php.

◆ getVarcharTypeDeclarationSQLSnippet()

string TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\MockMySQLPlatform::getVarcharTypeDeclarationSQLSnippet (   $length)
protected
Parameters
int$length
Returns
‪string
Exceptions

Definition at line 126 of file MockMySQLPlatform.php.

◆ initializeDoctrineTypeMappings()

TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\MockMySQLPlatform::initializeDoctrineTypeMappings ( )
protected

Lazy load Doctrine Type Mappings.

Definition at line 117 of file MockMySQLPlatform.php.