‪TYPO3CMS  ‪main
TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PostgreSql Class Reference
Inheritance diagram for TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PostgreSql:
TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\AbstractPlatform TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PlatformCheckInterface TYPO3\CMS\Install\SystemEnvironment\CheckInterface

Public Member Functions

 getStatus ()
 
 checkDefaultDatabaseCharset (Connection $connection)
 
 checkDefaultDatabaseServerCharset (Connection $connection)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\AbstractPlatform
 __construct ()
 
 getMessageQueue ()
 

Static Public Member Functions

static isValidDatabaseName (string $databaseName)
 

Protected Member Functions

 checkPostgreSqlVersion (Connection $connection)
 
 checkLibpqVersion ()
 
 checkDatabaseName (Connection $connection)
 

Protected Attributes

string $minimumPostgreSQLVerion = '10.0'
 
string $minimumLibPQVersion = '10.0'
 
array $databaseCharsetToCheck
 
array $databaseServerCharsetToCheck
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\AbstractPlatform
FlashMessageQueue $messageQueue
 
const SCHEMA_NAME_MAX_LENGTH = 64
 

Detailed Description

Check database configuration status for PostgreSQL

This class is a hardcoded requirement check for the database server.

The status messages and title must not include HTML, use plain text only. The return values of this class are not bound to HTML and can be used in different scopes (eg. as json array).

This class is only meant to be used within EXT:install and is not part of the TYPO3 Core API.

Definition at line 39 of file PostgreSql.php.

Member Function Documentation

◆ checkDatabaseName()

TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PostgreSql::checkDatabaseName ( Connection  $connection)
protected

◆ checkDefaultDatabaseCharset()

TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PostgreSql::checkDefaultDatabaseCharset ( Connection  $connection)

Checks the character set of the database and reports an error if it is not utf-8.

Parameters
Connection$connection‪to the database to be checked

Implements TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PlatformCheckInterface.

Definition at line 154 of file PostgreSql.php.

Referenced by TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PostgreSql\getStatus().

◆ checkDefaultDatabaseServerCharset()

TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PostgreSql::checkDefaultDatabaseServerCharset ( Connection  $connection)

Checks the character set of the database server and reports an info if it is not utf-8.

Parameters
Connection$connection‪to the database to be checked

Implements TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PlatformCheckInterface.

Definition at line 185 of file PostgreSql.php.

Referenced by TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PostgreSql\getStatus().

◆ checkLibpqVersion()

TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PostgreSql::checkLibpqVersion ( )
protected

Check the version of ligpq within the PostgreSQL driver

Definition at line 116 of file PostgreSql.php.

Referenced by TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PostgreSql\getStatus().

◆ checkPostgreSqlVersion()

TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PostgreSql::checkPostgreSqlVersion ( Connection  $connection)
protected

Check minimum PostgreSQL version

Parameters
Connection$connection‪to the database to be checked

Definition at line 94 of file PostgreSql.php.

References TYPO3\CMS\Core\Database\Connection\getPlatformServerVersion().

Referenced by TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PostgreSql\getStatus().

◆ getStatus()

◆ isValidDatabaseName()

static TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PostgreSql::isValidDatabaseName ( string  $databaseName)
static

Validate the database name

Reimplemented from TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\AbstractPlatform.

Definition at line 210 of file PostgreSql.php.

Member Data Documentation

◆ $databaseCharsetToCheck

array TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PostgreSql::$databaseCharsetToCheck
protected
Initial value:
= array(
'utf8',
)

Charset of the database that should be fulfilled

Definition at line 55 of file PostgreSql.php.

◆ $databaseServerCharsetToCheck

array TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PostgreSql::$databaseServerCharsetToCheck
protected
Initial value:
= array(
'utf8',
)

Charset of the database server that should be fulfilled

Definition at line 62 of file PostgreSql.php.

◆ $minimumLibPQVersion

string TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PostgreSql::$minimumLibPQVersion = '10.0'
protected

Minimum supported libpq version

Definition at line 50 of file PostgreSql.php.

◆ $minimumPostgreSQLVerion

string TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PostgreSql::$minimumPostgreSQLVerion = '10.0'
protected

Minimum supported PostgreSQL Server version

Definition at line 45 of file PostgreSql.php.