Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Client\Store\Sql\DirectSqlStore Class Reference

Implementation of the client store interface using direct access to the repository's database via MediaWiki's foreign wiki mechanism as implemented by LBFactoryMulti. More...

+ Inheritance diagram for Wikibase\Client\Store\Sql\DirectSqlStore:
+ Collaboration diagram for Wikibase\Client\Store\Sql\DirectSqlStore:

Public Member Functions

 __construct (EntityIdParser $entityIdParser, EntityIdLookup $entityIdLookup, WikibaseServices $wikibaseServices, SettingsArray $settings, TermBuffer $termBuffer, RepoDomainDb $repoDb, ClientDomainDb $clientDb)
 
 getSubscriptionManager ()
 
 getRecentChangesFinder ()
 
 getUsageLookup ()
 
 getUsageTracker ()
 
 getSiteLinkLookup ()
 
 getEntityLookup ()
 The EntityLookup returned by this method will resolve redirects.
 
 getEntityRevisionLookup ()
 
 getEntityIdLookup ()
 
 getEntityPrefetcher ()
 Returns an EntityPrefetcher which can be used to prefetch a list of entity ids in case we need to for example load a batch of entity ids.
 
 getUsageUpdater ()
 

Private Member Functions

 getRepoConnectionManager ()
 Returns a factory for connections to the repo wiki's database.
 
 getClientConnectionManager ()
 Returns a factory for connections to the client wiki's database.
 
 newEntityRevisionLookup ()
 

Private Attributes

 $entityIdParser
 
 $repoDb
 
 $clientDb
 
 $cacheKeyPrefix
 
 $cacheKeyGroup
 
 $cacheDuration
 
 $entityRevisionLookup = null
 
 $wikibaseServices
 
 $entityIdLookup
 
 $siteLinkLookup = null
 
 $usageTracker = null
 
 $usageLookup = null
 
 $subscriptionManager = null
 
 $siteId
 
 $disabledUsageAspects
 
 $entityUsagePerPageLimit
 
 $addEntityUsagesBatchSize
 
 $enableImplicitDescriptionUsage
 
 $allowLocalShortDesc
 
 $termBuffer
 

Detailed Description

Implementation of the client store interface using direct access to the repository's database via MediaWiki's foreign wiki mechanism as implemented by LBFactoryMulti.

Author
Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
Daniel Kinzler

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Client\Store\Sql\DirectSqlStore::__construct ( EntityIdParser $entityIdParser,
EntityIdLookup $entityIdLookup,
WikibaseServices $wikibaseServices,
SettingsArray $settings,
TermBuffer $termBuffer,
RepoDomainDb $repoDb,
ClientDomainDb $clientDb )

Member Function Documentation

◆ getClientConnectionManager()

Wikibase\Client\Store\Sql\DirectSqlStore::getClientConnectionManager ( )
private

Returns a factory for connections to the client wiki's database.

◆ getEntityIdLookup()

Wikibase\Client\Store\Sql\DirectSqlStore::getEntityIdLookup ( )
Deprecated
use WikibaseClient::getEntityLookup instead

Implements Wikibase\Client\Store\ClientStore.

◆ getEntityLookup()

Wikibase\Client\Store\Sql\DirectSqlStore::getEntityLookup ( )

The EntityLookup returned by this method will resolve redirects.

Implements Wikibase\Client\Store\ClientStore.

◆ getEntityPrefetcher()

Wikibase\Client\Store\Sql\DirectSqlStore::getEntityPrefetcher ( )

Returns an EntityPrefetcher which can be used to prefetch a list of entity ids in case we need to for example load a batch of entity ids.

Returns
EntityPrefetcher

Implements Wikibase\Client\Store\ClientStore.

◆ getEntityRevisionLookup()

Wikibase\Client\Store\Sql\DirectSqlStore::getEntityRevisionLookup ( )
Returns
EntityRevisionLookup

Implements Wikibase\Client\Store\ClientStore.

◆ getRecentChangesFinder()

Wikibase\Client\Store\Sql\DirectSqlStore::getRecentChangesFinder ( )
Returns
RecentChangesFinder|null

Implements Wikibase\Client\Store\ClientStore.

◆ getRepoConnectionManager()

Wikibase\Client\Store\Sql\DirectSqlStore::getRepoConnectionManager ( )
private

Returns a factory for connections to the repo wiki's database.

◆ getSiteLinkLookup()

Wikibase\Client\Store\Sql\DirectSqlStore::getSiteLinkLookup ( )
Returns
SiteLinkLookup

Implements Wikibase\Client\Store\ClientStore.

◆ getSubscriptionManager()

Wikibase\Client\Store\Sql\DirectSqlStore::getSubscriptionManager ( )
Returns
SubscriptionManager

Implements Wikibase\Client\Store\ClientStore.

◆ getUsageLookup()

Wikibase\Client\Store\Sql\DirectSqlStore::getUsageLookup ( )
Returns
UsageLookup

Implements Wikibase\Client\Store\ClientStore.

◆ getUsageTracker()

Wikibase\Client\Store\Sql\DirectSqlStore::getUsageTracker ( )
Returns
UsageTracker

Implements Wikibase\Client\Store\ClientStore.

◆ getUsageUpdater()

Wikibase\Client\Store\Sql\DirectSqlStore::getUsageUpdater ( )
Returns
UsageUpdater

Implements Wikibase\Client\Store\ClientStore.

◆ newEntityRevisionLookup()

Wikibase\Client\Store\Sql\DirectSqlStore::newEntityRevisionLookup ( )
private

Member Data Documentation

◆ $addEntityUsagesBatchSize

Wikibase\Client\Store\Sql\DirectSqlStore::$addEntityUsagesBatchSize
private

◆ $allowLocalShortDesc

Wikibase\Client\Store\Sql\DirectSqlStore::$allowLocalShortDesc
private

◆ $cacheDuration

Wikibase\Client\Store\Sql\DirectSqlStore::$cacheDuration
private

◆ $cacheKeyGroup

Wikibase\Client\Store\Sql\DirectSqlStore::$cacheKeyGroup
private

◆ $cacheKeyPrefix

Wikibase\Client\Store\Sql\DirectSqlStore::$cacheKeyPrefix
private

◆ $clientDb

Wikibase\Client\Store\Sql\DirectSqlStore::$clientDb
private

◆ $disabledUsageAspects

Wikibase\Client\Store\Sql\DirectSqlStore::$disabledUsageAspects
private

◆ $enableImplicitDescriptionUsage

Wikibase\Client\Store\Sql\DirectSqlStore::$enableImplicitDescriptionUsage
private

◆ $entityIdLookup

Wikibase\Client\Store\Sql\DirectSqlStore::$entityIdLookup
private

◆ $entityIdParser

Wikibase\Client\Store\Sql\DirectSqlStore::$entityIdParser
private

◆ $entityRevisionLookup

Wikibase\Client\Store\Sql\DirectSqlStore::$entityRevisionLookup = null
private

◆ $entityUsagePerPageLimit

Wikibase\Client\Store\Sql\DirectSqlStore::$entityUsagePerPageLimit
private

◆ $repoDb

Wikibase\Client\Store\Sql\DirectSqlStore::$repoDb
private

◆ $siteId

Wikibase\Client\Store\Sql\DirectSqlStore::$siteId
private

◆ $siteLinkLookup

Wikibase\Client\Store\Sql\DirectSqlStore::$siteLinkLookup = null
private

◆ $subscriptionManager

Wikibase\Client\Store\Sql\DirectSqlStore::$subscriptionManager = null
private

◆ $termBuffer

Wikibase\Client\Store\Sql\DirectSqlStore::$termBuffer
private

◆ $usageLookup

Wikibase\Client\Store\Sql\DirectSqlStore::$usageLookup = null
private

◆ $usageTracker

Wikibase\Client\Store\Sql\DirectSqlStore::$usageTracker = null
private

◆ $wikibaseServices

Wikibase\Client\Store\Sql\DirectSqlStore::$wikibaseServices
private

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