Drop legacy SQLite driver support
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
Direzione di ricerca
Inizia individuando SQLiteDatabaseIntegrationLoader, SQLiteDriverFactory, Export, Tables e gli scenari Behat correlati, quindi verifica che il plugin 3.0 rilasciato sia disponibile nell’ambiente di test. Esamina i percorsi di compatibilità e la checklist di coordinamento prima di modificarli. Il lavoro è completato quando i percorsi e i flag della legacy API sono stati rimossi o deprecati deliberatamente, la documentazione e i fixture sono aggiornati e l’intera suite Behat passa con le versioni supportate di PHP e WordPress.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- PHP
- Stelle
- 9
- Fork
- 4
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Issue simili
-
Solved site promotion gate fails on runner PHP patch drift (expects 8.2.33, runner installs 8.2.34) Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Automattic/blocks-engine#2161 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
Automattic/static-site-importer#1824 ·
-
[Chore] Keep one viget-block-generator skill and replicate it, instead of four tracked copies Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Cannot reset column width Aperta0. Needs triage bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
0. Needs triage 35-feedback bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100