mediawiki / sqlite-db
An extension that enables the SQLite DB
Package info
Type:mediawiki-extension
pkg:composer/mediawiki/sqlite-db
dev-master
2019-07-15 16:13 UTC
Requires
- php: >=5.6
- composer/installers: 1.*,>=1.0.1
Requires (Dev)
- mediawiki/mediawiki-codesniffer: 26.0.0
- phpmd/phpmd: ~2.1
- vimeo/psalm: ^3.4
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-04 09:30:03 UTC
README
* SQLite on MediaWiki This extension is based on a [[https://gerrit.wikimedia.org/r/#/c/mediawiki/core/+/522614/][WIP in the WMF's gerrit]]. ** How to use it Put the following in your =composer.local.json=: #+begin_src json { "require": { "mediawiki/sqlite-db": "dev-master" } } #+end_src and then [[https://getcomposer.org/download/][download composer]] and run =composer update=. You must set the environment variable =MW_INSTALL_PATH= to your mediawiki root to use this extension. #+begin_src sh $ cd YOUR_MEDIAWIKI_INSTALLATION $ MW_INSTALL_PATH=`pwd` $ export MW_INSTALL_PATH #+end_src ** Why this is necessary for installation In order to install on a SQLite DB this extension tells [[https://getcomposer.org/][composer]] how to autoload it. This is necessary so that when you specify “sqlite” as the db type during installation, it can find the right db driver. It also allows MediaWiki to use [[https://www.mediawiki.org/wiki/Manual:$wgDBtype][$wgDBtype]] to find the provided =DatabaseSqlitedb= class. Because of this bootstrapping, composer's autoloader needs to be able to use MediaWiki's autoloader and we make it available by loading [[https://www.mediawiki.org/wiki/Manual:AutoLoader.php][$MW_INSTALL_PATH/includes/installer/Installer.php]] and using [[https://gerrit.wikimedia.org/r/#/c/mediawiki/core/+/519681/][Installer::addDBType()]] to tell MediaWiki's installer about this extension.