MediaWiki master
|
Raw SQL value to be used in expression builders. More...
Inherits Wikimedia\Rdbms\Expression.
Public Member Functions | |
__construct (string $expression) | |
This should be used very rarely and NEVER with user input. | |
toGeneralizedSql () | |
toSql (DbQuoter $dbQuoter) | |
Public Member Functions inherited from Wikimedia\Rdbms\Expression | |
__construct (string $field, string $op, $value) | |
Store an expression. | |
and (string $field, string $op, $value) | |
andExpr (IExpression $expr) | |
or (string $field, string $op, $value) | |
orExpr (IExpression $expr) | |
Additional Inherited Members | |
Public Attributes inherited from Wikimedia\Rdbms\IExpression | |
const | ACCEPTABLE_OPERATORS = [ '>', '<', '!=', '=', '>=', '<=', self::LIKE, self::NOT_LIKE ] |
const | LIKE = 'LIKE' |
const | NOT_LIKE = 'NOT LIKE' |
Raw SQL value to be used in expression builders.
Definition at line 15 of file RawSQLExpression.php.
Wikimedia\Rdbms\RawSQLExpression::__construct | ( | string | $expression | ) |
This should be used very rarely and NEVER with user input.
Most common usecases include comparing two columns or function calls (e.g. COUNT(*))
string | $expression | value of the expression |
Definition at line 28 of file RawSQLExpression.php.
Wikimedia\Rdbms\RawSQLExpression::toGeneralizedSql | ( | ) |
Reimplemented from Wikimedia\Rdbms\Expression.
Definition at line 39 of file RawSQLExpression.php.
Wikimedia\Rdbms\RawSQLExpression::toSql | ( | DbQuoter | $dbQuoter | ) |
Reimplemented from Wikimedia\Rdbms\Expression.
Definition at line 35 of file RawSQLExpression.php.