Tasks
class Tasks extends Tasks (View source)
Specifies installation tasks for SQLite databases.
Constants
| SQLITE_MINIMUM_VERSION |
Minimum required SQLite version. Use to build sqlite library with json1 option for JSON datatype support. |
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.
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.