Connection::serialize

public Connection::serialize() File core/lib/Drupal/Core/Database/Driver/mysql/Connection.php, line 179 Class Connection MySQL implementation of \Drupal\Core\Database\Connection. Namespace Drupal\Core\Database\Driver\mysql Code public function serialize() { // Cleanup the connection, much like __destruct() does it as well. if ($this->needsCleanup) { $this->nextIdDelete(); } $this->needsCleanup = FALSE; return parent::serialize(); }

Connection::select

public Connection::select($table, $alias = NULL, array $options = array()) Prepares and returns a SELECT query object. Parameters string $table: The base table for this query, that is, the first table in the FROM clause. This table will also be used as the "base" table for query_alter hook implementations. string $alias: (optional) The alias of the base table of this query. $options: An array of options on the query. Return value \Drupal\Core\Database\Query\SelectInterface An appropriate Sele

Connection::schema

public Connection::schema() Returns a DatabaseSchema object for manipulating the schema. This method will lazy-load the appropriate schema library file. Return value \Drupal\Core\Database\Schema The database Schema object for this connection. File core/lib/Drupal/Core/Database/Connection.php, line 906 Class Connection Base Database API class. Namespace Drupal\Core\Database Code public function schema() { if (empty($this->schema)) { $class = $this->getDriverClass('Schema');

Connection::rollbackSavepoint

public Connection::rollbackSavepoint($savepoint_name = 'mimic_implicit_commit') Rollback a savepoint by name if it exists. Parameters $savepoint_name: A string representing the savepoint name. By default, "mimic_implicit_commit" is used. File core/lib/Drupal/Core/Database/Driver/pgsql/Connection.php, line 410 Class Connection PostgreSQL implementation of \Drupal\Core\Database\Connection. Namespace Drupal\Core\Database\Driver\pgsql Code public function rollbackSavepoint($savepoint_name

Connection::rollback

public Connection::rollback($savepoint_name = 'drupal_transaction') Rolls back the transaction entirely or to a named savepoint. This method throws an exception if no transaction is active. Parameters string $savepoint_name: (optional) The name of the savepoint. The default, 'drupal_transaction', will roll the entire transaction back. Throws \Drupal\Core\Database\TransactionOutOfOrderException \Drupal\Core\Database\TransactionNoActiveException See also \Drupal\Core\Database\Transaction::roll

Connection::releaseSavepoint

public Connection::releaseSavepoint($savepoint_name = 'mimic_implicit_commit') Release a savepoint by name. Parameters $savepoint_name: A string representing the savepoint name. By default, "mimic_implicit_commit" is used. See also Drupal\Core\Database\Connection::popTransaction() File core/lib/Drupal/Core/Database/Driver/pgsql/Connection.php, line 397 Class Connection PostgreSQL implementation of \Drupal\Core\Database\Connection. Namespace Drupal\Core\Database\Driver\pgsql Code publ

Connection::quote

public Connection::quote($string, $parameter_type = \PDO::PARAM_STR) Quotes a string for use in a query. Parameters string $string: The string to be quoted. int $parameter_type: (optional) Provides a data type hint for drivers that have alternate quoting styles. Defaults to \PDO::PARAM_STR. Return value string|bool A quoted string that is theoretically safe to pass into an SQL statement. Returns FALSE if the driver does not support quoting in this way. See also \PDO::quote() File core/lib/Dr

Connection::queryTemporary

public Connection::queryTemporary($query, array $args = array(), array $options = array()) Runs a SELECT query and stores its results in a temporary table. Use this as a substitute for ->query() when the results need to stored in a temporary table. Temporary tables exist for the duration of the page request. User-supplied arguments to the query should be passed in as separate parameters so that they can be properly escaped to avoid SQL injection attacks. Note that if you need to know how man

Connection::queryTemporary

public Connection::queryTemporary($query, array $args = array(), array $options = array()) Runs a SELECT query and stores its results in a temporary table. Use this as a substitute for ->query() when the results need to stored in a temporary table. Temporary tables exist for the duration of the page request. User-supplied arguments to the query should be passed in as separate parameters so that they can be properly escaped to avoid SQL injection attacks. Note that if you need to know how man

Connection::queryTemporary

public Connection::queryTemporary($query, array $args = array(), array $options = array()) Runs a SELECT query and stores its results in a temporary table. Use this as a substitute for ->query() when the results need to stored in a temporary table. Temporary tables exist for the duration of the page request. User-supplied arguments to the query should be passed in as separate parameters so that they can be properly escaped to avoid SQL injection attacks. Note that if you need to know how man