Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\Store\Sql\SqlChangeStore Class Reference
+ Inheritance diagram for Wikibase\Lib\Store\Sql\SqlChangeStore:
+ Collaboration diagram for Wikibase\Lib\Store\Sql\SqlChangeStore:

Public Member Functions

 __construct (RepoDomainDb $repoDomainDb)
 
 saveChange (Change $change)
 Saves the change to a database table and ensures it has a change-id.
 
 deleteChangesByChangeIds (array $changeIds)
 

Private Member Functions

 updateChange (ChangeRow $change)
 
 insertChange (ChangeRow $change)
 
 getValues (ChangeRow $change, IDatabase $db)
 

Private Attributes

 $repoDomainDb
 

Detailed Description

Author
Marius Hoch

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Store\Sql\SqlChangeStore::__construct ( RepoDomainDb $repoDomainDb)

Member Function Documentation

◆ deleteChangesByChangeIds()

Wikibase\Lib\Store\Sql\SqlChangeStore::deleteChangesByChangeIds ( array $changeIds)

◆ getValues()

Wikibase\Lib\Store\Sql\SqlChangeStore::getValues ( ChangeRow $change,
IDatabase $db )
private
Parameters
ChangeRow$change
Returns
array

◆ insertChange()

Wikibase\Lib\Store\Sql\SqlChangeStore::insertChange ( ChangeRow $change)
private

◆ saveChange()

Wikibase\Lib\Store\Sql\SqlChangeStore::saveChange ( Change $change)

Saves the change to a database table and ensures it has a change-id.

Note
Only supports Change objects that are derived from ChangeRow.
Parameters
Change$change
Exceptions
DBQueryError

Implements Wikibase\Lib\Changes\ChangeStore.

◆ updateChange()

Wikibase\Lib\Store\Sql\SqlChangeStore::updateChange ( ChangeRow $change)
private

Member Data Documentation

◆ $repoDomainDb

Wikibase\Lib\Store\Sql\SqlChangeStore::$repoDomainDb
private

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