MediaWiki REL1_35
|
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 30 of file GeneralizedSql.php.
Wikimedia\Rdbms\GeneralizedSql::__construct | ( | $rawSql, | |
$trxId, | |||
$prefix | |||
) |
string | $rawSql | |
string | $trxId | |
string | $prefix |
Definition at line 46 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 60 of file GeneralizedSql.php.
Wikimedia\Rdbms\GeneralizedSql::stringify | ( | ) |
Definition at line 85 of file GeneralizedSql.php.
References Wikimedia\Rdbms\GeneralizedSql\$genericSql.
Referenced by Wikimedia\Rdbms\TransactionProfiler\queryString().
|
private |
Definition at line 39 of file GeneralizedSql.php.
Referenced by Wikimedia\Rdbms\GeneralizedSql\stringify().
|
private |
Definition at line 36 of file GeneralizedSql.php.
Referenced by Wikimedia\Rdbms\GeneralizedSql\__construct().
|
private |
Definition at line 32 of file GeneralizedSql.php.
Referenced by Wikimedia\Rdbms\GeneralizedSql\__construct().
|
private |
Definition at line 34 of file GeneralizedSql.php.
Referenced by Wikimedia\Rdbms\GeneralizedSql\__construct().