wiki.techinc.nl/includes/specialpage
Tim Starling 95bd40b25c In query builders, use insertInto() and deleteFrom() instead of insert() and delete()
The design principle for SelectQueryBuilder was to make the chained
builder calls look as much like SQL as possible, so that developers
could leverage their knowledge of SQL to understand what the query
builder is doing.

That's why SelectQueryBuilder::select() takes a list of fields, and by
the same principle, it makes sense for UpdateQueryBuilder::update() to
take a table. However with "insert" and "delete", the SQL designers
chose to add prepositions "into" and "from", and I think it makes sense
to follow that here.

In terms of natural language, we update a table, but we don't delete a
table, or insert a table. We delete rows from a table, or insert rows
into a table. The table is not the object of the verb.

So, add insertInto() as an alias for insert(), and add deleteFrom() as
an alias for delete(). Use the new methods in MW core callers where
PHPStorm knows the type.

Change-Id: Idb327a54a57a0fb2288ea067472c1e9727016000
2023-09-08 10:16:08 +10:00
..
Hook Fix various typos and documentation issues 2023-08-27 12:05:11 +02:00
AuthManagerSpecialPage.php Reorg: Move Status to MediaWiki\Status\ 2023-08-25 15:44:17 +02:00
ChangesListSpecialPage.php Simplify WHERE conditions with field IS NULL 2023-07-24 19:22:36 +02:00
DisabledSpecialPage.php
FormSpecialPage.php Reorg: Move Status to MediaWiki\Status\ 2023-08-25 15:44:17 +02:00
ImageQueryPage.php Reorg: Move three output related classes to includes/Output/ 2023-09-05 19:36:42 +01:00
IncludableSpecialPage.php
LoginSignupSpecialPage.php Reorg: Move Status to MediaWiki\Status\ 2023-08-25 15:44:17 +02:00
PageQueryPage.php
QueryPage.php In query builders, use insertInto() and deleteFrom() instead of insert() and delete() 2023-09-08 10:16:08 +10:00
RedirectSpecialArticle.php
RedirectSpecialPage.php
SpecialPage.php Reorg: Move three output related classes to includes/Output/ 2023-09-05 19:36:42 +01:00
SpecialPageFactory.php Merge "Remove deprecated ActorMigration usages around ContribsPager" 2023-08-26 12:34:05 +00:00
SpecialRedirectToSpecial.php
SpecialRedirectWithAction.php Reorg: Move Status to MediaWiki\Status\ 2023-08-25 15:44:17 +02:00
UnlistedSpecialPage.php
WantedQueryPage.php