This is implemented in a separate repo https://github.com/wmde/mediawiki-term-store which is an wikibase-term-store implementaion using MW DBAL.
|Invalid||None||T221706 Implement PropertyTermStore wikibase-term-store using MW DBAL|
|Invalid||None||T221707 Implement MW PropertyTermStore|
|Invalid||None||T221708 Implement MW ItemTermStore|
|Resolved||• alaa_wmde||T223963 Implement normalized Terms storage logic|
The MW DBAL implementation will reside inside Wikibase extension code-base for now.
That is because:
- MW DBAL is not extracted outside of mediawiki/core as a separate package
- mediawiki/core is not provided as a package one can depend on (at least dev dependencies for tests)
if one of the above two wasn't true, it would've been easier to do a separate library for MW DBAL implementation of wikibase-term-store.
Change 507275 had a related patch set uploaded (by Alaa Sarhan; owner: Alaa Sarhan):
[mediawiki/extensions/Wikibase@master] Add SchemaAccess interface to abstract normalized terms schema access from mediawiki dbal's implementation of wikibase-term-store