Drop legacy SQLite driver support
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 35/100
Rechercherichtung
Beginne damit, SQLiteDatabaseIntegrationLoader, SQLiteDriverFactory, Export, Tables und die zugehörigen Behat-Szenarien zu lokalisieren, und überprüfe anschließend, dass das veröffentlichte 3.0-Plugin in der Testumgebung verfügbar ist. Prüfe die Kompatibilitätspfade und die Koordinations-Checkliste, bevor du sie änderst. Als erledigt gilt die Aufgabe, wenn die Pfade und Flags der Legacy-API entfernt oder bewusst als veraltet gekennzeichnet wurden, die Dokumentation und Fixtures aktualisiert sind und die vollständige Behat-Suite mit den unterstützten PHP- und WordPress-Versionen erfolgreich durchläuft.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
SQLiteDatabaseIntegrationLoaderto 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
SQLiteDriverFactoryto always constructWP_MySQL_On_SQLite; retain centralized DSN escaping and PDO attribute setup. - Remove
WP_SQLITE_AST_DRIVERhandling and the--enable-ast-driveroption 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
ExportandTables; 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-driveror 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.
- Vorherrschende Sprache
- PHP
- Sterne
- 9
- Forks
- 4
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Ähnliche Issues
-
bug
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 63/100
smarty-php/smarty#1215 ·
-
sync-en
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
Maintainer antworten meist innerhalb von 1 Tag
-
sync-en
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 4 Tagen
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
ProfessionalWiki/NeoWiki#1637 ·
Maintainer antworten meist innerhalb von 1 Tag