Upsert::preExecute

protected Upsert::preExecute() Preprocesses and validates the query. Return value bool TRUE if the validation was successful, FALSE otherwise. Throws \Drupal\Core\Database\Query\NoUniqueFieldException \Drupal\Core\Database\Query\FieldsOverlapException \Drupal\Core\Database\Query\NoFieldsException File core/lib/Drupal/Core/Database/Query/Upsert.php, line 67 Class Upsert General class for an abstracted "Upsert" (UPDATE or INSERT) query operation. Namespace Drupal\Core\Database\Query Co

Upsert::key

public Upsert::key($field) Sets the unique / primary key field to be used as condition for this query. Parameters string $field: The name of the field to set. Return value $this File core/lib/Drupal/Core/Database/Query/Upsert.php, line 51 Class Upsert General class for an abstracted "Upsert" (UPDATE or INSERT) query operation. Namespace Drupal\Core\Database\Query Code public function key($field) { $this->key = $field; return $this; }

Upsert::execute

public Upsert::execute() Runs the query against the database. Return value \Drupal\Core\Database\StatementInterface|null A prepared statement, or NULL if the query is not valid. Overrides Query::execute File core/lib/Drupal/Core/Database/Query/Upsert.php, line 93 Class Upsert General class for an abstracted "Upsert" (UPDATE or INSERT) query operation. Namespace Drupal\Core\Database\Query Code public function execute() { if (!$this->preExecute()) { return NULL; } $max_pla

Upsert::execute

public Upsert::execute() Runs the query against the database. Return value \Drupal\Core\Database\StatementInterface|null A prepared statement, or NULL if the query is not valid. Overrides Upsert::execute File core/lib/Drupal/Core/Database/Driver/pgsql/Upsert.php, line 15 Class Upsert PostgreSQL implementation of \Drupal\Core\Database\Query\Upsert. Namespace Drupal\Core\Database\Driver\pgsql Code public function execute() { if (!$this->preExecute()) { return NULL; } // De

Upsert::$key

The unique or primary key of the table. Type: string File core/lib/Drupal/Core/Database/Query/Upsert.php, line 25 Class Upsert General class for an abstracted "Upsert" (UPDATE or INSERT) query operation. Namespace Drupal\Core\Database\Query Code protected $key;

Upsert

SQLite implementation of \Drupal\Core\Database\Query\Upsert. Hierarchy class \Drupal\Core\Database\Query\Query implements PlaceholderInterfaceclass \Drupal\Core\Database\Query\Upsert implements \Countable uses InsertTraitclass \Drupal\Core\Database\Driver\sqlite\Upsert File core/lib/Drupal/Core/Database/Driver/sqlite/Upsert.php, line 10 Namespace Drupal\Core\Database\Driver\sqlite Members Name Modifiers Type Description InsertTrait::$defaultFields protected property An

Upsert

MySQL implementation of \Drupal\Core\Database\Query\Upsert. Hierarchy class \Drupal\Core\Database\Query\Query implements PlaceholderInterfaceclass \Drupal\Core\Database\Query\Upsert implements \Countable uses InsertTraitclass \Drupal\Core\Database\Driver\mysql\Upsert File core/lib/Drupal/Core/Database/Driver/mysql/Upsert.php, line 10 Namespace Drupal\Core\Database\Driver\mysql Members Name Modifiers Type Description InsertTrait::$defaultFields protected property An arr

Upsert

General class for an abstracted "Upsert" (UPDATE or INSERT) query operation. This class can only be used with a table with a single unique index. Often, this will be the primary key. On such a table this class works like Insert except the rows will be set to the desired values even if the key existed before. Hierarchy class \Drupal\Core\Database\Query\Query implements PlaceholderInterfaceclass \Drupal\Core\Database\Query\Upsert implements \Countable uses InsertTrait File core/lib/Drupal/Cor

Upsert

PostgreSQL implementation of \Drupal\Core\Database\Query\Upsert. Hierarchy class \Drupal\Core\Database\Query\Query implements PlaceholderInterfaceclass \Drupal\Core\Database\Query\Upsert implements \Countable uses InsertTraitclass \Drupal\Core\Database\Driver\pgsql\Upsert File core/lib/Drupal/Core/Database/Driver/pgsql/Upsert.php, line 10 Namespace Drupal\Core\Database\Driver\pgsql Members Name Modifiers Type Description InsertTrait::$defaultFields protected property A

update_verify_update_archive

update_verify_update_archive($project, $archive_file, $directory) Implements hook_verify_update_archive(). First, we ensure that the archive isn't a copy of Drupal core, which the update manager does not yet support. See https://www.drupal.org/node/606592. Then, we make sure that at least one module included in the archive file has an .info.yml file which claims that the code is compatible with the current version of Drupal core. See also \Drupal\Core\Extension\ExtensionDiscovery _system_rebui