Tasks deprecated
class Tasks extends Tasks (View source)
deprecated
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} | from Tasks |
| protected array | $tasks | Structure that describes each task to run. |
from Tasks |
| protected array | $results | Results from tasks. |
from Tasks |
Methods
Runs database tasks and tests to see if Drupal can run on the database.
Checks engine version requirements for the status report.
Ensures the database can execute commands with the current user.
Validates driver specific configuration settings.
Translates a string to the current language or to a given language.
Verify that a binary data roundtrip returns the original string.
Verifies the standard_conforming_strings setting.
Details
in
Tasks at line 89
protected bool
hasPdoDriver()
Ensure the PDO driver is supported by the version of PHP in use.
in
Tasks at line 96
protected
fail($message)
Asserts test as failed.
in
Tasks at line 103
protected
pass($message)
Asserts test as a pass.
in
Tasks at line 113
bool
installable()
Checks whether Drupal is installable on the database.
in
Tasks at line 53
string
name()
Returns the human-readable name of the driver.
in
Tasks at line 60
string|null
minimumVersion()
Returns the minimum required version of the engine.
in
Tasks at line 142
string[]
runTasks()
Runs database tasks and tests to see if Drupal can run on the database.
in
Tasks at line 171
final TranslatableMarkup[]
engineVersionRequirementsCheck()
Checks engine version requirements for the status report.
This method is called during runtime and update requirements checks.
in
Tasks at line 67
protected bool
connect()
Checks if we can connect to the database.
in
Tasks at line 200
protected
runTestQuery($query, $pass, $fail, $fatal = FALSE)
Ensures the database can execute commands with the current user.
in
Tasks at line 214
protected
checkEngineVersion()
Checks the engine version.
in
Tasks at line 286
array
getFormOptions(array $database)
Returns driver specific configuration options.
in
Tasks at line 340
TranslatableMarkup[]
validateDatabaseSettings(array $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 366
protected TranslatableMarkup
t(string $string, array $args = [], array $options = [])
Translates a string to the current language or to a given language.
in
Tasks at line 377
protected bool
isConnectionActive()
Determines if there is an active connection.
in
Tasks at line 387
protected Connection
getConnection()
Returns the database connection.
in
Tasks at line 31
__construct()
Constructs a \Drupal\pgsql\Driver\Database\pgsql\Install\Tasks object.
in
Tasks at line 122
protected
checkEncoding()
Check encoding is UTF8.
in
Tasks at line 144
checkBinaryOutput()
Check Binary Output.
Unserializing does not work on Postgresql 9 when bytea_output is 'hex'.
in
Tasks at line 184
protected
checkBinaryOutputSuccess()
Verify that a binary data roundtrip returns the original string.
in
Tasks at line 196
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.
in
Tasks at line 236
protected
checkStandardConformingStringsSuccess()
Verifies the standard_conforming_strings setting.
in
Tasks at line 244
initializeDatabase()
Make PostgreSQL Drupal friendly.