wiki.techinc.nl/tests/phpunit/includes/libs/rdbms
Aaron Schulz cbc700e186 rbms: optimize and rename truncateTable() to truncate()
Allow truncation of multiple tables. This also provides for
a way to avoid risky keywords like CASCADE for Postgres.

For Postgres, use RESTART IDENTITY, which has been supported
since Postgres 8.4.

Avoid TRUNCATE/DELETE queries for empty temp tables, which is
useful for integrations tests that frequently call this method.

Reorganize and tweak the regexes in Database::getTempWrites().
It now recognizes multi-table DROP/TRUNCATE (Postgres-style).

Change-Id: Idd49f118b20ea5a0f7a3e8c00369aabcd45dd44e
2020-04-21 01:26:18 -07:00
..
connectionmanager Coding style: Auto-fix MediaWiki.Classes.UnsortedUseStatements.UnsortedUse 2020-01-10 09:32:25 -08:00
database rbms: optimize and rename truncateTable() to truncate() 2020-04-21 01:26:18 -07:00
querybuilder Add SelectQueryBuilder 2020-02-07 10:10:17 +11:00
resultwrapper Add ResultWrapper/FakeResultWrapper tests 2019-07-11 19:57:14 +00:00
ChronologyProtectorTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
TransactionProfilerTest.php Coding style: Auto-fix MediaWiki.Classes.UnsortedUseStatements.UnsortedUse 2020-01-10 09:32:25 -08:00