class Merge in Drupal 8
Same name in this branch
- 8 core/lib/Drupal/Core/Database/Query/Merge.php \Drupal\Core\Database\Query\Merge
- 8 core/lib/Drupal/Core/Database/Driver/sqlite/Merge.php \Drupal\Core\Database\Driver\sqlite\Merge
- 8 core/lib/Drupal/Core/Database/Driver/pgsql/Merge.php \Drupal\Core\Database\Driver\pgsql\Merge
- 8 core/lib/Drupal/Core/Database/Driver/mysql/Merge.php \Drupal\Core\Database\Driver\mysql\Merge
- 8 core/modules/system/tests/modules/driver_test/src/Driver/Database/DrivertestMysql/Merge.php \Drupal\driver_test\Driver\Database\DrivertestMysql\Merge
- 8 core/modules/system/tests/modules/driver_test/src/Driver/Database/DrivertestPgsql/Merge.php \Drupal\driver_test\Driver\Database\DrivertestPgsql\Merge
Same name and namespace in other branches
- 10 core/modules/system/tests/modules/driver_test/src/Driver/Database/DrivertestMysql/Merge.php \Drupal\driver_test\Driver\Database\DrivertestMysql\Merge
MySQL test implementation of \Drupal\Core\Database\Query\Merge.
Hierarchy
- class \Drupal\Core\Database\Query\Query implements PlaceholderInterface
- class \Drupal\Core\Database\Query\Merge implements ConditionInterface uses QueryConditionTrait
Expanded class hierarchy of Merge
2 string references to 'Merge'
- Connection::merge in core/
lib/ Drupal/ Core/ Database/ Connection.php - Prepares and returns a MERGE query object.
- Connection::__construct in core/
modules/ system/ tests/ modules/ driver_test/ src/ Driver/ Database/ DrivertestMysqlDeprecatedVersion/ Connection.php - Constructs a Connection object.
File
- core/
modules/ system/ tests/ modules/ driver_test/ src/ Driver/ Database/ DrivertestMysql/ Merge.php, line 10
Namespace
Drupal\driver_test\Driver\Database\DrivertestMysqlView source
class Merge extends CoreMerge {
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Merge:: |
protected | property | The table or subquery to be used for the condition. | |
Merge:: |
protected | property | An array of fields which should be set to their database-defined defaults. | |
Merge:: |
protected | property | Array of fields to update to an expression in case of a duplicate record. | |
Merge:: |
protected | property | An array of fields on which to insert. | |
Merge:: |
protected | property | An array of values to be inserted. | |
Merge:: |
protected | property | Flag indicating whether an UPDATE is necessary. | |
Merge:: |
protected | property | The table to be used for INSERT and UPDATE. | |
Merge:: |
protected | property | An array of fields that will be updated. | |
Merge:: |
protected | function | Sets the table or subquery to be used for the condition. | |
Merge:: |
public | function |
Runs the query against the database. Overrides Query:: |
|
Merge:: |
public | function | Specifies fields to be updated as an expression. | |
Merge:: |
public | function | Sets common field-value pairs in the INSERT and UPDATE query parts. | |
Merge:: |
public | function | Adds a set of field->value pairs to be inserted. | |
Merge:: |
public | function | Sets a single key field to be used as condition for this query. | |
Merge:: |
public | function | Sets the key fields to be used as conditions for this query. | |
Merge:: |
constant | Returned by execute() if an INSERT query has been executed. | ||
Merge:: |
constant | Returned by execute() if an UPDATE query has been executed. | ||
Merge:: |
public | function | Adds a set of field->value pairs to be updated. | |
Merge:: |
public | function | Specifies fields for which the database-defaults should be used. | |
Merge:: |
public | function |
Constructs a Merge object. Overrides Query:: |
|
Merge:: |
public | function |
Implements PHP magic __toString method to convert the query to a string. Overrides Query:: |
|
Query:: |
protected | property | An array of comments that can be prepended to a query. | |
Query:: |
protected | property | The connection object on which to run this query. | |
Query:: |
protected | property | The key of the connection object. | |
Query:: |
protected | property | The target of the connection object. | |
Query:: |
protected | property | The placeholder counter. | |
Query:: |
protected | property | The query options to pass on to the connection object. | |
Query:: |
protected | property | A unique identifier for this query object. | |
Query:: |
public | function | Adds a comment to the query. | |
Query:: |
public | function | Returns a reference to the comments array for the query. | |
Query:: |
public | function |
Gets the next placeholder value for this query object. Overrides PlaceholderInterface:: |
|
Query:: |
public | function |
Returns a unique identifier for this object. Overrides PlaceholderInterface:: |
|
Query:: |
public | function | Implements the magic __clone function. | 1 |
Query:: |
public | function | Implements the magic __sleep function to disconnect from the database. | |
Query:: |
public | function | Implements the magic __wakeup function to reconnect to the database. | |
QueryConditionTrait:: |
protected | property | The condition object for this query. | |
QueryConditionTrait:: |
public | function | ||
QueryConditionTrait:: |
public | function | ||
QueryConditionTrait:: |
public | function | 1 | |
QueryConditionTrait:: |
public | function | 1 | |
QueryConditionTrait:: |
public | function | 1 | |
QueryConditionTrait:: |
public | function | ||
QueryConditionTrait:: |
public | function | ||
QueryConditionTrait:: |
public | function | ||
QueryConditionTrait:: |
public | function | ||
QueryConditionTrait:: |
public | function | ||
QueryConditionTrait:: |
public | function | ||
QueryConditionTrait:: |
public | function | ||
QueryConditionTrait:: |
public | function | ||
QueryConditionTrait:: |
public | function |