Hacktoberfest 2026 : les issues que les mainteneurs ont marquées pour octobre, ouvertes et accessibles aux débutants. Parcourir les issues Hacktoberfest

Drop legacy SQLite driver support

Ouverte
#34 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
35/100
Type d'issue
Refactorisation
Clarté
Plutôt claire
Activité
Calme
Stack technique
php, sqlite
Domaine
cli, database

Piste de recherche

Commencez par localiser SQLiteDatabaseIntegrationLoader, SQLiteDriverFactory, Export, Tables et les scénarios Behat associés, puis vérifiez que le plugin 3.0 publié est disponible dans l’environnement de test. Examinez les chemins de compatibilité et la checklist de coordination avant de les modifier. Le travail est considéré comme terminé lorsque les chemins et flags de l’API legacy ont été supprimés ou dépréciés délibérément, que la documentation et les fixtures ont été mis à jour et que la suite Behat complète passe avec les versions prises en charge de PHP et de WordPress.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.
Langage dominant
PHP
Étoiles
9
Forks
4
Métriques de merge des PR
Aucune PR mergée en 30 j

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Issues similaires

Plus d'issues PHP

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.