Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Drop legacy SQLite driver support

オープン
#34 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
静か
技術スタック
php, sqlite
領域
cli, database

調査の方向性

まず SQLiteDatabaseIntegrationLoader、SQLiteDriverFactory、Export、Tables、および関連する Behat シナリオを見つけ、リリース済みの 3.0 プラグインがテスト環境で利用可能であることを確認します。変更する前に、互換性パスと調整チェックリストを確認します。レガシー API のパスとフラグが削除されるか、意図的に非推奨となり、ドキュメントと fixture が更新され、サポート対象の PHP および WordPress のバージョンに対して完全な Behat スイートが成功すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Context

Once SQLite Database Integration PR 449 is released and version 3.0 is the minimum supported plugin version, WP_MySQL_On_SQLite can become the only supported driver API. The compatibility paths introduced or retained in PR 33 can then be removed.

Work

  • Raise the minimum SQLite Database Integration version to 3.0 and provide a clear error for older releases.
  • Simplify SQLiteDatabaseIntegrationLoader to the supported 3.0 entry point; remove the legacy translator, old AST wrapper, single-file, and manual-loader fallbacks that are no longer needed.
  • Simplify SQLiteDriverFactory to always construct WP_MySQL_On_SQLite; retain centralized DSN escaping and PDO attribute setup.
  • Remove WP_SQLITE_AST_DRIVER handling and the --enable-ast-driver option from import, export, and tables.
  • Decide whether to remove the CLI option immediately or temporarily accept it as a deprecated no-op for downstream compatibility.
  • Replace driver union types and remove imports, branches, and PHPStan stubs for WP_SQLite_Translator, WP_SQLite_Driver, and—if no longer used—WP_SQLite_Connection.
  • Simplify PDO result handling in Export and Tables; remove legacy array-result branches, legacy sorting, and internal-table filtering that the 3.0 driver already handles.
  • Reconsider Export::get_sqlite_pdo(). If the PDO-like driver can stream rows without materializing them, query it directly and remove access to the underlying SQLite PDO; otherwise keep the accessor without its legacy branch and document the performance reason.
  • Remove or convert flag-specific Behat scenarios so the normal, unflagged path covers import, export, tables, identifier quoting, SQL modes, and byte-preserving round trips.
  • Update README, command help, architecture notes, and contributor documentation to describe a single driver API.

Test fixture cleanup

The export fixtures currently create setup SQL files and run wp sqlite import so table creation goes through the selected compatibility driver and updates its information schema. Once 3.0 is the only supported layout, consider loading WP_MySQL_On_SQLite from a persistent test-plugin path and instantiating it directly with each scenario's DSN. The fixtures could then execute setup DDL through the driver without temporary files or coupling export tests to the import command.

The persistent path matters because the Behat process survives across scenarios while individual scenario directories are deleted.

Coordination

  • Confirm downstream consumers no longer depend on --enable-ast-driver or plugin versions below 3.0.
  • Land the cleanup only after the 3.0 plugin release is available to the normal test environment.
  • Run the full Behat suite against the released 3.0 plugin and supported PHP/WordPress versions.
主要言語
PHP
スター
9
フォーク
4
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。