You are here

protected static property Connection::$sqliteConditionOperatorMap in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php \Drupal\Core\Database\Driver\sqlite\Connection::sqliteConditionOperatorMap

A map of condition operators to SQLite operators.

We don't want to override any of the defaults.

File

core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php, line 41

Class

Connection
SQLite implementation of \Drupal\Core\Database\Connection.

Namespace

Drupal\Core\Database\Driver\sqlite

Code

protected static $sqliteConditionOperatorMap = [
  'LIKE' => [
    'postfix' => " ESCAPE '\\'",
  ],
  'NOT LIKE' => [
    'postfix' => " ESCAPE '\\'",
  ],
  'LIKE BINARY' => [
    'postfix' => " ESCAPE '\\'",
    'operator' => 'GLOB',
  ],
  'NOT LIKE BINARY' => [
    'postfix' => " ESCAPE '\\'",
    'operator' => 'NOT GLOB',
  ],
];