Connection::open

public static Connection::open(array &$connection_options = array()) Opens a PDO connection. Parameters array $connection_options: The database connection settings array. Return value \PDO A \PDO object. Overrides Connection::open File core/lib/Drupal/Core/Database/Driver/pgsql/Connection.php, line 77 Class Connection PostgreSQL implementation of \Drupal\Core\Database\Connection. Namespace Drupal\Core\Database\Driver\pgsql Code public static function open(array &$connection_o

Connection::open

public static Connection::open(array &$connection_options = array()) Opens a PDO connection. Parameters array $connection_options: The database connection settings array. Return value \PDO A \PDO object. Overrides Connection::open File core/lib/Drupal/Core/Database/Driver/mysql/Connection.php, line 98 Class Connection MySQL implementation of \Drupal\Core\Database\Connection. Namespace Drupal\Core\Database\Driver\mysql Code public static function open(array &$connection_option

Connection::open

public static Connection::open(array &$connection_options = array()) Opens a PDO connection. Parameters array $connection_options: The database connection settings array. Return value \PDO A \PDO object. File core/lib/Drupal/Core/Database/Connection.php, line 176 Class Connection Base Database API class. Namespace Drupal\Core\Database Code public static function open(array &$connection_options = array()) { }

Connection::nextIdDelete

public Connection::nextIdDelete() File core/lib/Drupal/Core/Database/Driver/mysql/Connection.php, line 261 Class Connection MySQL implementation of \Drupal\Core\Database\Connection. Namespace Drupal\Core\Database\Driver\mysql Code public function nextIdDelete() { // While we want to clean up the table to keep it up from occupying too // much storage and memory, we must keep the highest value in the table // because InnoDB uses an in-memory auto-increment counter as long as the

Connection::nextId

public Connection::nextId($existing_id = 0) Retrieves an unique ID from a given sequence. Use this function if for some reason you can't use a serial field. For example, MySQL has no ways of reading of the current value of a sequence and PostgreSQL can not advance the sequence to be larger than a given value. Or sometimes you just need a unique integer. Parameters $existing_id: (optional) After a database import, it might be that the sequences table is behind, so by passing in the maximum exis

Connection::nextId

public Connection::nextId($existing = 0) Retrieve a the next id in a sequence. PostgreSQL has built in sequences. We'll use these instead of inserting and updating a sequences table. Overrides Connection::nextId File core/lib/Drupal/Core/Database/Driver/pgsql/Connection.php, line 320 Class Connection PostgreSQL implementation of \Drupal\Core\Database\Connection. Namespace Drupal\Core\Database\Driver\pgsql Code public function nextId($existing = 0) { // Retrieve the name of the seque

Connection::nextId

public Connection::nextId($existing_id = 0) Retrieves an unique ID from a given sequence. Use this function if for some reason you can't use a serial field. For example, MySQL has no ways of reading of the current value of a sequence and PostgreSQL can not advance the sequence to be larger than a given value. Or sometimes you just need a unique integer. Parameters $existing_id: (optional) After a database import, it might be that the sequences table is behind, so by passing in the maximum exis

Connection::nextId

abstract public Connection::nextId($existing_id = 0) Retrieves an unique ID from a given sequence. Use this function if for some reason you can't use a serial field. For example, MySQL has no ways of reading of the current value of a sequence and PostgreSQL can not advance the sequence to be larger than a given value. Or sometimes you just need a unique integer. Parameters $existing_id: (optional) After a database import, it might be that the sequences table is behind, so by passing in the max

Connection::MIN_MAX_ALLOWED_PACKET

The minimal possible value for the max_allowed_packet setting of MySQL. @link https://mariadb.com/kb/en/mariadb/server-system-variables/#max_allowed_p... @link https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sys... File core/lib/Drupal/Core/Database/Driver/mysql/Connection.php, line 59 Class Connection MySQL implementation of \Drupal\Core\Database\Connection. Namespace Drupal\Core\Database\Driver\mysql Code const MIN_MAX_ALLOWED_PACKET = 1024;

Connection::merge

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