Connection::$sqliteConditionOperatorMap

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php \Drupal\Core\Database\Driver\sqlite\Connection::sqliteConditionOperatorMap
  2. 10 core/modules/sqlite/src/Driver/Database/sqlite/Connection.php \Drupal\sqlite\Driver\Database\sqlite\Connection::sqliteConditionOperatorMap
  3. 11.x core/modules/sqlite/src/Driver/Database/sqlite/Connection.php \Drupal\sqlite\Driver\Database\sqlite\Connection::sqliteConditionOperatorMap

A map of condition operators to SQLite operators.

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

Type: sqliteConditionOperatorMap

File

core/modules/sqlite/src/Driver/Database/sqlite/Connection.php, line 42

Class

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

Namespace

Drupal\sqlite\Driver\Database\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',
    ],
];

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.