Upsert.php

Same filename in this branch
  1. 9 core/modules/sqlite/src/Driver/Database/sqlite/Upsert.php
  2. 9 core/modules/mysql/src/Driver/Database/mysql/Upsert.php
  3. 9 core/modules/system/tests/modules/driver_test/src/Driver/Database/DrivertestMysql/Upsert.php
  4. 9 core/modules/system/tests/modules/driver_test/src/Driver/Database/DrivertestMysqlDeprecatedVersion/Upsert.php
  5. 9 core/modules/system/tests/modules/driver_test/src/Driver/Database/DrivertestPgsql/Upsert.php
  6. 9 core/modules/pgsql/src/Driver/Database/pgsql/Upsert.php
  7. 9 core/tests/fixtures/database_drivers/module/corefake/src/Driver/Database/corefakeWithAllCustomClasses/Upsert.php
  8. 9 core/lib/Drupal/Core/Database/Driver/sqlite/Upsert.php
  9. 9 core/lib/Drupal/Core/Database/Driver/pgsql/Upsert.php
  10. 9 core/lib/Drupal/Core/Database/Query/Upsert.php
Same filename in other branches
  1. 8.9.x core/modules/system/tests/modules/driver_test/src/Driver/Database/DrivertestMysql/Upsert.php
  2. 8.9.x core/modules/system/tests/modules/driver_test/src/Driver/Database/DrivertestPgsql/Upsert.php
  3. 8.9.x core/lib/Drupal/Core/Database/Driver/sqlite/Upsert.php
  4. 8.9.x core/lib/Drupal/Core/Database/Driver/mysql/Upsert.php
  5. 8.9.x core/lib/Drupal/Core/Database/Driver/pgsql/Upsert.php
  6. 8.9.x core/lib/Drupal/Core/Database/Query/Upsert.php
  7. 10 core/modules/sqlite/src/Driver/Database/sqlite/Upsert.php
  8. 10 core/modules/mysql/src/Driver/Database/mysql/Upsert.php
  9. 10 core/modules/pgsql/src/Driver/Database/pgsql/Upsert.php
  10. 10 core/tests/fixtures/database_drivers/module/core_fake/src/Driver/Database/CoreFakeWithAllCustomClasses/Upsert.php
  11. 10 core/lib/Drupal/Core/Database/Driver/sqlite/Upsert.php
  12. 10 core/lib/Drupal/Core/Database/Driver/mysql/Upsert.php
  13. 10 core/lib/Drupal/Core/Database/Driver/pgsql/Upsert.php
  14. 10 core/lib/Drupal/Core/Database/Query/Upsert.php
  15. 11.x core/modules/sqlite/src/Driver/Database/sqlite/Upsert.php
  16. 11.x core/modules/mysql/src/Driver/Database/mysql/Upsert.php
  17. 11.x core/modules/pgsql/src/Driver/Database/pgsql/Upsert.php
  18. 11.x core/tests/fixtures/database_drivers/module/core_fake/src/Driver/Database/CoreFakeWithAllCustomClasses/Upsert.php
  19. 11.x core/lib/Drupal/Core/Database/Query/Upsert.php

Namespace

Drupal\Core\Database\Driver\mysql

File

core/lib/Drupal/Core/Database/Driver/mysql/Upsert.php

View source
<?php

namespace Drupal\Core\Database\Driver\mysql;

use Drupal\mysql\Driver\Database\mysql\Upsert as MysqlUpsert;
@trigger_error('\\Drupal\\Core\\Database\\Driver\\mysql\\Upsert is deprecated in drupal:9.4.0 and is removed from drupal:11.0.0. The MySQL database driver has been moved to the mysql module. See https://www.drupal.org/node/3129492', E_USER_DEPRECATED);

/**
 * MySQL implementation of \Drupal\Core\Database\Query\Upsert.
 *
 * @deprecated in drupal:9.4.0 and is removed from drupal:11.0.0. The MySQL
 *   database driver has been moved to the mysql module.
 *
 * @see https://www.drupal.org/node/3129492
 */
class Upsert extends MysqlUpsert {

}

Classes

Title Deprecated Summary
Upsert

in drupal:9.4.0 and is removed from drupal:11.0.0. The MySQL database driver has been moved to the mysql module.

MySQL implementation of \Drupal\Core\Database\Query\Upsert.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.