来自 aaemnnosttv 的 wp-sqlite-db 插件

Evan Mattson 78bb8fc319 Fix case of Datetime class references 3 năm trước cách đây
partials 55610276f4 Refactor with ClassPreloader 3 năm trước cách đây
scripts 55610276f4 Refactor with ClassPreloader 3 năm trước cách đây
src 78bb8fc319 Fix case of Datetime class references 3 năm trước cách đây
tests bbc6c22e03 Update PDOEngine to rollback properly 3 năm trước cách đây
.gitignore 55610276f4 Refactor with ClassPreloader 3 năm trước cách đây
.travis.yml b0c893d2a7 Cache composer downloads between jobs on Travis. 4 năm trước cách đây
CHANGELOG.md f83ab8fdb9 Bump version and update changelog. 4 năm trước cách đây
README.md f6e34fc08e add instructions for installing via composer 6 năm trước cách đây
composer.json 55610276f4 Refactor with ClassPreloader 3 năm trước cách đây
phpunit.xml.dist ae069df99a Rename tests directory to integration. 4 năm trước cách đây

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"]
    }
    }
    

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.