来自 aaemnnosttv 的 wp-sqlite-db 插件

Evan Mattson 6a7780ff3c Merge pull request #50 from mwguerra/master 1 tahun lalu
.github ad3bfabdeb fix: handle deprecation notices in PHP 8.1 1 tahun lalu
src b3245f3db6 chore: add return types 1 tahun lalu
tests ae069df99a Rename tests directory to integration. 4 tahun lalu
.gitignore 637d00e84d Ignore phpunit result cache 1 tahun lalu
CHANGELOG.md 2f231f1a28 Bump version and update changelog 3 tahun lalu
README.md 5ea34f3f7b Update README.md 3 tahun lalu
composer.json e5b809fd22 Update dependencies in composer.json 1 tahun lalu
phpunit.xml.dist ae069df99a Rename tests directory to integration. 4 tahun lalu

README.md

wp-sqlite-db

Build Status Packagist Packagist

A single file drop-in for using a SQLite database with WordPress. Based on the original SQLite Integration plugin.

Installation

Quick Start

  • Clone or download this repository
  • Copy src/db.php into the root of your site's wp-content directory

Via Composer

  • composer 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"]
    }
    }
    
  • composer require aaemnnosttv/wp-sqlite-db

Overview

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');

Credit

This project is based on the SQLite Integration plugin by Kojima Toshiyasu.