Public Member Functions | |
__construct () | |
query ($sql, $fname= '', $tempIgnore=false) | |
Usually aborts on failure. | |
replaceVars ($s) | |
Replace variables in sourced SQL. | |
Public Attributes | |
$lastQuery |
Definition at line 3 of file DatabaseSqliteTest.php.
MockDatabaseSqlite::__construct | ( | ) |
Definition at line 6 of file DatabaseSqliteTest.php.
MockDatabaseSqlite::query | ( | $ | sql, | |
$ | fname = '' , |
|||
$ | tempIgnore = false | |||
) |
Usually aborts on failure.
If errors are explicitly ignored, returns success.
$sql | String: SQL query | |
$fname | String: Name of the calling function, for profiling/SHOW PROCESSLIST comment (you can use __METHOD__ or add some extra info) | |
$tempIgnore | Boolean: Whether to avoid throwing an exception on errors... maybe best to catch the exception instead? |
DBQueryError | Thrown when the database returns an error of any kind |
Reimplemented from DatabaseBase.
Definition at line 10 of file DatabaseSqliteTest.php.
References DatabaseBase::lastQuery().
MockDatabaseSqlite::replaceVars | ( | $ | ins | ) |
Replace variables in sourced SQL.
Reimplemented from DatabaseSqlite.
Definition at line 15 of file DatabaseSqliteTest.php.
References $s.
MockDatabaseSqlite::$lastQuery |
Definition at line 4 of file DatabaseSqliteTest.php.