Connection::sqlFunctionRegexp

public static Connection::sqlFunctionRegexp($pattern, $subject) SQLite compatibility implementation for the REGEXP SQL operator. The REGEXP operator is natively known, but not implemented by default. See also http://www.sqlite.org/lang_expr.html#regexp File core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php, line 282 Class Connection SQLite implementation of \Drupal\Core\Database\Connection. Namespace Drupal\Core\Database\Driver\sqlite Code public static function sqlFunctionRe

Connection::sqlFunctionRand

public static Connection::sqlFunctionRand($seed = NULL) SQLite compatibility implementation for the RAND() SQL function. File core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php, line 268 Class Connection SQLite implementation of \Drupal\Core\Database\Connection. Namespace Drupal\Core\Database\Driver\sqlite Code public static function sqlFunctionRand($seed = NULL) { if (isset($seed)) { mt_srand($seed); } return mt_rand() / mt_getrandmax(); }

Connection::sqlFunctionLikeBinary

public static Connection::sqlFunctionLikeBinary($pattern, $subject) SQLite compatibility implementation for the LIKE BINARY SQL operator. SQLite supports case-sensitive LIKE operations through the 'case_sensitive_like' PRAGMA statement, but only for ASCII characters, so we have to provide our own implementation with UTF-8 support. See also https://sqlite.org/pragma.html#pragma_case_sensitive_like https://sqlite.org/lang_expr.html#like File core/lib/Drupal/Core/Database/Driver/sqlite/Connection

Connection::sqlFunctionIf

public static Connection::sqlFunctionIf($condition, $expr1, $expr2 = NULL) SQLite compatibility implementation for the IF() SQL function. File core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php, line 191 Class Connection SQLite implementation of \Drupal\Core\Database\Connection. Namespace Drupal\Core\Database\Driver\sqlite Code public static function sqlFunctionIf($condition, $expr1, $expr2 = NULL) { return $condition ? $expr1 : $expr2; }

Connection::sqlFunctionConcatWs

public static Connection::sqlFunctionConcatWs() SQLite compatibility implementation for the CONCAT_WS() SQL function. See also http://dev.mysql.com/doc/refman/5.6/en/string-functions.html#function_co... File core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php, line 226 Class Connection SQLite implementation of \Drupal\Core\Database\Connection. Namespace Drupal\Core\Database\Driver\sqlite Code public static function sqlFunctionConcatWs() { $args = func_get_args(); $separator

Connection::sqlFunctionConcat

public static Connection::sqlFunctionConcat() SQLite compatibility implementation for the CONCAT() SQL function. File core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php, line 216 Class Connection SQLite implementation of \Drupal\Core\Database\Connection. Namespace Drupal\Core\Database\Driver\sqlite Code public static function sqlFunctionConcat() { $args = func_get_args(); return implode('', $args); }

Connection::setTarget

public Connection::setTarget($target = NULL) Tells this connection object what its target value is. This is needed for logging and auditing. It's sloppy to do in the constructor because the constructor for child classes has a different signature. We therefore also ensure that this function is only ever called once. Parameters string $target: (optional) The target this connection is for. File core/lib/Drupal/Core/Database/Connection.php, line 403 Class Connection Base Database API class.

Connection::setPrefix

protected Connection::setPrefix($prefix) Set the list of prefixes used by this database connection. Parameters array|string $prefix: Either a single prefix, or an array of prefixes, in any of the multiple forms documented in default.settings.php. File core/lib/Drupal/Core/Database/Connection.php, line 280 Class Connection Base Database API class. Namespace Drupal\Core\Database Code protected function setPrefix($prefix) { if (is_array($prefix)) { $this->prefixes = $prefix + ar

Connection::setLogger

public Connection::setLogger(Log $logger) Associates a logging object with this connection. Parameters \Drupal\Core\Database\Log $logger: The logging object we want to use. File core/lib/Drupal/Core/Database/Connection.php, line 447 Class Connection Base Database API class. Namespace Drupal\Core\Database Code public function setLogger(Log $logger) { $this->logger = $logger; }

Connection::setKey

public Connection::setKey($key) Tells this connection object what its key is. Parameters string $key: The key this connection is for. File core/lib/Drupal/Core/Database/Connection.php, line 425 Class Connection Base Database API class. Namespace Drupal\Core\Database Code public function setKey($key) { if (!isset($this->key)) { $this->key = $key; } }