来自 aaemnnosttv 的 wp-sqlite-db 插件
Evan Mattson 78bb8fc319 Fix case of Datetime class references | 3 年之前 | |
---|---|---|
partials | 3 年之前 | |
scripts | 3 年之前 | |
src | 3 年之前 | |
tests | 3 年之前 | |
.gitignore | 3 年之前 | |
.travis.yml | 4 年之前 | |
CHANGELOG.md | 4 年之前 | |
README.md | 6 年之前 | |
composer.json | 3 年之前 | |
phpunit.xml.dist | 4 年之前 |
A single file drop-in for using a SQLite database with WordPress. Based on the original SQLite Integration plugin.
src/db.php
into the root of your site's wp-content
directorycomposer require koodimonni/composer-dropin-installer
Add the configuration to your project's composer.json
under the extra
key
"extra": {
"dropin-paths": {
"wp-content/": ["package:aaemnnosttv/wp-sqlite-db:src/db.php"]
}
}
Once the drop-in is installed, no other configuration is necessary, but some things are configurable.
By default, the SQLite database is located in wp-content/database/.ht.sqlite
, but you can change this using a few constants.
define('DB_DIR', '/absolute/custom/path/to/directory/for/sqlite/database/file/');
define('DB_FILE', 'custom_filename_for_sqlite_database');
This project is based on the SQLite Integration plugin by Kojima Toshiyasu.