Tasks
class Tasks extends Tasks (View source)
Specifies installation tasks for PostgreSQL databases.
Constants
| PGSQL_MINIMUM_VERSION |
Minimum required PostgreSQL version. The contrib extension pg_trgm is supposed to be installed. |
Properties
| protected | $pdoDriver | {@inheritdoc} | |
| protected array | $tasks | Structure that describes each task to run. |
from Tasks |
| protected array | $results | Results from tasks. |
from Tasks |
Methods
Return the human-readable name of the driver.
Return the minimum required version of the engine.
Checks engine version requirements for the status report.
Check if we can connect to the database.
Run SQL tests to ensure the database can execute commands with the current user.
Return driver specific configuration options.
Translates a string to the current language or to a given language.
Constructs a \Drupal\Core\Database\Driver\pgsql\Install\Tasks object.
Check encoding is UTF8.
Check Binary Output.
Verify that a binary data roundtrip returns the original string.
Ensures standard_conforming_strings setting is 'on'.
Verifies the standard_conforming_strings setting.
Make PostgreSQL Drupal friendly.
Details
in
Tasks at line 86
protected
hasPdoDriver()
Ensure the PDO driver is supported by the version of PHP in use.
in
Tasks at line 93
protected
fail($message)
Assert test as failed.
in
Tasks at line 100
protected
pass($message)
Assert test as a pass.
in
Tasks at line 107
installable()
Check whether Drupal is installable on the database.
name()
Return the human-readable name of the driver.
A
minimumVersion()
Return the minimum required version of the engine.
in
Tasks at line 133
array
runTasks()
Run database tasks and tests to see if Drupal can run on the database.
in
Tasks at line 162
final TranslatableMarkup[]
engineVersionRequirementsCheck()
Checks engine version requirements for the status report.
This method is called during runtime and update requirements checks.
protected
connect()
Check if we can connect to the database.
in
Tasks at line 188
protected
runTestQuery($query, $pass, $fail, $fatal = FALSE)
Run SQL tests to ensure the database can execute commands with the current user.
in
Tasks at line 202
protected
checkEngineVersion()
Check the engine version.
The
getFormOptions(array $database)
Return driver specific configuration options.
in
Tasks at line 328
An
validateDatabaseSettings($database)
Validates driver specific configuration settings.
Checks to ensure correct basic database settings and that a proper connection to the database can be established.
in
Tasks at line 344
protected
t($string, array $args = [], array $options = [])
Translates a string to the current language or to a given language.
in
Tasks at line 355
protected bool
isConnectionActive()
Determines if there is an active connection.
in
Tasks at line 365
protected Connection
getConnection()
Returns the database connection.
__construct()
Constructs a \Drupal\Core\Database\Driver\pgsql\Install\Tasks object.
protected
checkEncoding()
Check encoding is UTF8.
checkBinaryOutput()
Check Binary Output.
Unserializing does not work on Postgresql 9 when bytea_output is 'hex'.
protected
checkBinaryOutputSuccess()
Verify that a binary data roundtrip returns the original string.
checkStandardConformingStrings()
Ensures standard_conforming_strings setting is 'on'.
When standard_conforming_strings setting is 'on' string literals ('...') treat backslashes literally, as specified in the SQL standard. This allows Drupal to convert between bytea, text and varchar columns.
protected
checkStandardConformingStringsSuccess()
Verifies the standard_conforming_strings setting.
initializeDatabase()
Make PostgreSQL Drupal friendly.