Connection::mapConditionOperator

public Connection::mapConditionOperator($operator) Gets any special processing requirements for the condition operator. Some condition types require special processing, such as IN, because the value data they pass in is not a simple value. This is a simple overridable lookup function. Database connections should define only those operators they wish to be handled differently than the default. Parameters string $operator: The condition operator, such as "IN", "BETWEEN", etc. Case-sensitive. Ret

Connection::mapConditionOperator

public Connection::mapConditionOperator($operator) Gets any special processing requirements for the condition operator. Some condition types require special processing, such as IN, because the value data they pass in is not a simple value. This is a simple overridable lookup function. Database connections should define only those operators they wish to be handled differently than the default. Parameters string $operator: The condition operator, such as "IN", "BETWEEN", etc. Case-sensitive. Ret

Connection::mapConditionOperator

abstract public Connection::mapConditionOperator($operator) Gets any special processing requirements for the condition operator. Some condition types require special processing, such as IN, because the value data they pass in is not a simple value. This is a simple overridable lookup function. Database connections should define only those operators they wish to be handled differently than the default. Parameters string $operator: The condition operator, such as "IN", "BETWEEN", etc. Case-sensi

Connection::mapConditionOperator

public Connection::mapConditionOperator($operator) Gets any special processing requirements for the condition operator. Some condition types require special processing, such as IN, because the value data they pass in is not a simple value. This is a simple overridable lookup function. Database connections should define only those operators they wish to be handled differently than the default. Parameters string $operator: The condition operator, such as "IN", "BETWEEN", etc. Case-sensitive. Ret

Connection::makeSequenceName

public Connection::makeSequenceName($table, $field) Creates the appropriate sequence name for a given table and serial field. This information is exposed to all database drivers, although it is only useful on some of them. This method is table prefix-aware. Parameters string $table: The table name to use for the sequence. string $field: The field name to use for the sequence. Return value string A table prefix-parsed string for the sequence name. File core/lib/Drupal/Core/Database/Connection.

Connection::makeComment

public Connection::makeComment($comments) Flatten an array of query comments into a single comment string. The comment string will be sanitized to avoid SQL injection attacks. Parameters string[] $comments: An array of query comment strings. Return value string A sanitized comment string. File core/lib/Drupal/Core/Database/Connection.php, line 491 Class Connection Base Database API class. Namespace Drupal\Core\Database Code public function makeComment($comments) { if (empty($commen

Connection::inTransaction

public Connection::inTransaction() Determines if there is an active transaction open. Return value bool TRUE if we're currently in a transaction, FALSE otherwise. File core/lib/Drupal/Core/Database/Connection.php, line 1018 Class Connection Base Database API class. Namespace Drupal\Core\Database Code public function inTransaction() { return ($this->transactionDepth() > 0); }

Connection::insert

public Connection::insert($table, array $options = array()) Prepares and returns an INSERT query object. Parameters string $table: The table to use for the insert statement. array $options: (optional) An array of options on the query. Return value \Drupal\Core\Database\Query\Insert A new Insert query object. See also \Drupal\Core\Database\Query\Insert File core/lib/Drupal/Core/Database/Connection.php, line 803 Class Connection Base Database API class. Namespace Drupal\Core\Database

Connection::handleQueryException

protected Connection::handleQueryException(\PDOException $e, $query, array $args = array(), $options = array()) Wraps and re-throws any PDO exception thrown by static::query(). Parameters \PDOException $e: The exception thrown by static::query(). $query: The query executed by static::query(). array $args: An array of arguments for the prepared statement. array $options: An associative array of options to control how the query is run. Return value \Drupal\Core\Database\StatementInterface|int|n

Connection::handleQueryException

protected Connection::handleQueryException(\PDOException $e, $query, array $args = array(), $options = array()) Wraps and re-throws any PDO exception thrown by static::query(). Parameters \PDOException $e: The exception thrown by static::query(). $query: The query executed by static::query(). array $args: An array of arguments for the prepared statement. array $options: An associative array of options to control how the query is run. Return value \Drupal\Core\Database\StatementInterface|int|n