Connection::UNKNOWN_CHARSET

Driver-specific error code for "Unknown character set" error. File core/lib/Drupal/Core/Database/Driver/mysql/Connection.php, line 37 Class Connection MySQL implementation of \Drupal\Core\Database\Connection. Namespace Drupal\Core\Database\Driver\mysql Code const UNKNOWN_CHARSET = 1115;

Connection::truncate

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

Connection::transactionDepth

public Connection::transactionDepth() Determines the current transaction depth. Return value int The current transaction depth. File core/lib/Drupal/Core/Database/Connection.php, line 1028 Class Connection Base Database API class. Namespace Drupal\Core\Database Code public function transactionDepth() { return count($this->transactionLayers); }

Connection::tablePrefix

public Connection::tablePrefix($table = 'default') Find the prefix for a table. This function is for when you want to know the prefix of a table. This is not used in prefixTables due to performance reasons. Parameters string $table: (optional) The table to find the prefix for. File core/lib/Drupal/Core/Database/Connection.php, line 339 Class Connection Base Database API class. Namespace Drupal\Core\Database Code public function tablePrefix($table = 'default') { if (isset($this->p

Connection::supportsTransactions

public Connection::supportsTransactions() Determines if this driver supports transactions. Return value bool TRUE if this connection supports transactions, FALSE otherwise. File core/lib/Drupal/Core/Database/Connection.php, line 1286 Class Connection Base Database API class. Namespace Drupal\Core\Database Code public function supportsTransactions() { return $this->transactionSupport; }

Connection::supportsTransactionalDDL

public Connection::supportsTransactionalDDL() Determines if this driver supports transactional DDL. DDL queries are those that change the schema, such as ALTER queries. Return value bool TRUE if this connection supports transactions for DDL queries, FALSE otherwise. File core/lib/Drupal/Core/Database/Connection.php, line 1299 Class Connection Base Database API class. Namespace Drupal\Core\Database Code public function supportsTransactionalDDL() { return $this->transactionalDDLSup

Connection::startTransaction

public Connection::startTransaction($name = '') Returns a new DatabaseTransaction object on this connection. Parameters string $name: (optional) The name of the savepoint. Return value \Drupal\Core\Database\Transaction A Transaction object. See also \Drupal\Core\Database\Transaction File core/lib/Drupal/Core/Database/Connection.php, line 1043 Class Connection Base Database API class. Namespace Drupal\Core\Database Code public function startTransaction($name = '') { $class = $this-

Connection::SQLSTATE_SYNTAX_ERROR

SQLSTATE error code for "Syntax error or access rule violation". File core/lib/Drupal/Core/Database/Driver/mysql/Connection.php, line 42 Class Connection MySQL implementation of \Drupal\Core\Database\Connection. Namespace Drupal\Core\Database\Driver\mysql Code const SQLSTATE_SYNTAX_ERROR = 42000;

Connection::sqlFunctionSubstringIndex

public static Connection::sqlFunctionSubstringIndex($string, $delimiter, $count) SQLite compatibility implementation for the SUBSTRING_INDEX() SQL function. File core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php, line 250 Class Connection SQLite implementation of \Drupal\Core\Database\Connection. Namespace Drupal\Core\Database\Driver\sqlite Code public static function sqlFunctionSubstringIndex($string, $delimiter, $count) { // If string is empty, simply return an empty strin

Connection::sqlFunctionSubstring

public static Connection::sqlFunctionSubstring($string, $from, $length) SQLite compatibility implementation for the SUBSTRING() SQL function. File core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php, line 243 Class Connection SQLite implementation of \Drupal\Core\Database\Connection. Namespace Drupal\Core\Database\Driver\sqlite Code public static function sqlFunctionSubstring($string, $from, $length) { return substr($string, $from - 1, $length); }