MediaWiki
master
|
This is to contain any regex on SQL work and get rid of them eventually. More...
Static Public Member Functions | |
static | buildQuery (string $sql, $flags, string $tablePrefix='') |
static | generalizeSQL ( $sql) |
Removes most variables from an SQL query and replaces them with X or N for numbers. More... | |
This is to contain any regex on SQL work and get rid of them eventually.
This is a radioactive swamp and an extremely flawed and buggy last resort for when the information has not been provided via Query object. Bugs are to be expected in the regexes here.
Definition at line 35 of file QueryBuilderFromRawSql.php.
|
static |
string | $sql | |
int | $flags | |
string | $tablePrefix |
Definition at line 43 of file QueryBuilderFromRawSql.php.
Referenced by Wikimedia\Rdbms\Platform\SQLPlatform\getQueryVerb(), Wikimedia\Rdbms\Platform\SQLPlatform\isWriteQuery(), Wikimedia\Rdbms\Query\isWriteQuery(), and Wikimedia\Rdbms\Database\query().
|
static |
Removes most variables from an SQL query and replaces them with X or N for numbers.
It's only slightly flawed. Don't use for anything important.
string | $sql | A SQL Query |
Definition at line 139 of file QueryBuilderFromRawSql.php.
Referenced by Wikimedia\Rdbms\GeneralizedSql\stringify().