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::__toString

public Upsert::__toString() Implements PHP magic __toString method to convert the query to a string. The toString operation is how we compile a query object to a prepared statement. Return value string A prepared statement query string for this object. Overrides Query::__toString File core/lib/Drupal/Core/Database/Driver/mysql/Upsert.php, line 15 Class Upsert MySQL implementation of \Drupal\Core\Database\Query\Upsert. Namespace Drupal\Core\Database\Driver\mysql Code public function __

Upsert::__construct

public Upsert::__construct(Connection $connection, $table, array $options = []) Constructs an Upsert object. Parameters \Drupal\Core\Database\Connection $connection: A Connection object. string $table: Name of the table to associate with this query. array $options: (optional) An array of database options. Overrides Query::__construct File core/lib/Drupal/Core/Database/Query/Upsert.php, line 37 Class Upsert General class for an abstracted "Upsert" (UPDATE or INSERT) query operation. Name

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_UNKNOWN

No available update data was found for project. File core/modules/update/update.module, line 54 Handles updates of Drupal core and contributed projects. Code const UPDATE_UNKNOWN = -2;