Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\Maintenance\PruneItemsPerSite Class Reference

Maintenance script for pruning rows belonging to deleted or redirected items from the wb_items_per_site table. More...

+ Inheritance diagram for Wikibase\Repo\Maintenance\PruneItemsPerSite:
+ Collaboration diagram for Wikibase\Repo\Maintenance\PruneItemsPerSite:

Public Member Functions

 __construct ()
 
 execute ()
 

Private Member Functions

 prune (RepoDomainDb $db, int $itemNamespace, int $selectBatchSize)
 
 selectInRange (IDatabase $dbr, int $itemNamespace, int $startRowId, int $endRowId)
 
 deleteRows (IDatabase $dbw, array $rowsToDelete)
 

Detailed Description

Maintenance script for pruning rows belonging to deleted or redirected items from the wb_items_per_site table.

Author
Marius Hoch < hoo@o.nosp@m.nlin.nosp@m.e.de >

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Maintenance\PruneItemsPerSite::__construct ( )

Member Function Documentation

◆ deleteRows()

Wikibase\Repo\Maintenance\PruneItemsPerSite::deleteRows ( IDatabase  $dbw,
array  $rowsToDelete 
)
private

◆ execute()

Wikibase\Repo\Maintenance\PruneItemsPerSite::execute ( )

◆ prune()

Wikibase\Repo\Maintenance\PruneItemsPerSite::prune ( RepoDomainDb  $db,
int  $itemNamespace,
int  $selectBatchSize 
)
private

◆ selectInRange()

Wikibase\Repo\Maintenance\PruneItemsPerSite::selectInRange ( IDatabase  $dbr,
int  $itemNamespace,
int  $startRowId,
int  $endRowId 
)
private

The documentation for this class was generated from the following file: