MediaWiki REL1_34
|
Lazy-loaded wrapper for simplification and scrubbing of SQL queries for profiling. More...
Public Member Functions | |
__construct ( $rawSql, $trxId, $prefix) | |
stringify () | |
Static Private Member Functions | |
static | generalizeSQL ( $sql) |
Removes most variables from an SQL query and replaces them with X or N for numbers. | |
Private Attributes | |
string null | $genericSql |
string | $prefix |
string | $rawSql |
string | $trxId |
Lazy-loaded wrapper for simplification and scrubbing of SQL queries for profiling.
Definition at line 29 of file GeneralizedSql.php.
Wikimedia\Rdbms\GeneralizedSql::__construct | ( | $rawSql, | |
$trxId, | |||
$prefix | |||
) |
string | $rawSql | |
string | $trxId | |
string | $prefix |
Definition at line 45 of file GeneralizedSql.php.
References Wikimedia\Rdbms\GeneralizedSql\$prefix, Wikimedia\Rdbms\GeneralizedSql\$rawSql, and Wikimedia\Rdbms\GeneralizedSql\$trxId.
|
staticprivate |
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 59 of file GeneralizedSql.php.
Wikimedia\Rdbms\GeneralizedSql::stringify | ( | ) |
Definition at line 84 of file GeneralizedSql.php.
References Wikimedia\Rdbms\GeneralizedSql\$genericSql.
Referenced by Wikimedia\Rdbms\TransactionProfiler\queryString().
|
private |
Definition at line 38 of file GeneralizedSql.php.
Referenced by Wikimedia\Rdbms\GeneralizedSql\stringify().
|
private |
Definition at line 35 of file GeneralizedSql.php.
Referenced by Wikimedia\Rdbms\GeneralizedSql\__construct().
|
private |
Definition at line 31 of file GeneralizedSql.php.
Referenced by Wikimedia\Rdbms\GeneralizedSql\__construct().
|
private |
Definition at line 33 of file GeneralizedSql.php.
Referenced by Wikimedia\Rdbms\GeneralizedSql\__construct().