MediaWiki master
IExpression.php
Go to the documentation of this file.
1<?php
2
3namespace Wikimedia\Rdbms;
4
6
10interface IExpression {
11
12 public const ACCEPTABLE_OPERATORS = [ '>', '<', '!=', '=', '>=', '<=', self::LIKE, self::NOT_LIKE ];
13
14 public const LIKE = 'LIKE';
15 public const NOT_LIKE = 'NOT LIKE';
16
21 public function toSql( DbQuoter $dbQuoter ): string;
22
30 public function toGeneralizedSql(): string;
31}
toGeneralizedSql()
Return SQL for aggregated logging.
toSql(DbQuoter $dbQuoter)
Return SQL for execution.