MediaWiki master
Wikimedia\Rdbms\IExpression Interface Reference

Inherited by Wikimedia\Rdbms\Expression, and Wikimedia\Rdbms\ExpressionGroup.

Public Member Functions

 toGeneralizedSql ()
 Return SQL for aggregated logging.
 
 toSql (DbQuoter $dbQuoter)
 Return SQL for execution.
 

Public Attributes

const ACCEPTABLE_OPERATORS = [ '>', '<', '!=', '=', '>=', '<=', self::LIKE, self::NOT_LIKE ]
 
const LIKE = 'LIKE'
 
const NOT_LIKE = 'NOT LIKE'
 

Detailed Description

Since
1.42

Definition at line 10 of file IExpression.php.

Member Function Documentation

◆ toGeneralizedSql()

Wikimedia\Rdbms\IExpression::toGeneralizedSql ( )

Return SQL for aggregated logging.

Replaces values with placeholders.

Access: internal

Implemented in Wikimedia\Rdbms\Expression, and Wikimedia\Rdbms\ExpressionGroup.

◆ toSql()

Wikimedia\Rdbms\IExpression::toSql ( DbQuoter  $dbQuoter)

Return SQL for execution.

Access: internal

Implemented in Wikimedia\Rdbms\Expression, and Wikimedia\Rdbms\ExpressionGroup.

Member Data Documentation

◆ ACCEPTABLE_OPERATORS

const Wikimedia\Rdbms\IExpression::ACCEPTABLE_OPERATORS = [ '>', '<', '!=', '=', '>=', '<=', self::LIKE, self::NOT_LIKE ]

Definition at line 12 of file IExpression.php.

Referenced by Wikimedia\Rdbms\Expression\__construct().

◆ LIKE

const Wikimedia\Rdbms\IExpression::LIKE = 'LIKE'

◆ NOT_LIKE

const Wikimedia\Rdbms\IExpression::NOT_LIKE = 'NOT LIKE'

Definition at line 15 of file IExpression.php.

Referenced by Wikimedia\Rdbms\Expression\__construct().


The documentation for this interface was generated from the following file: