-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Explore: Setup SQLite database integration without creating wp-conten…
…t/db.php (#1382) Related to #1379 Loads the SQLite database integration without creating a drop-in `wp-content/db.php` plugin. Instead, it leans on the `auto_prepend_file` PHP option to provide a fake global `$wpdb` variable. This prevents WordPress from trying to connect to MySQL. The first time that `$wpdb` is used for reading or a method call, it loads the actual SQLite database integration. ## Follow-up work Use the same SQLite setup method in the web version of Playground. This could happen either when a non-minified WordPress build is used or, for simplicity, always if we remove the SQLite integration plugin from the minified build. ## Testing instructions Run `bun packages/playground/cli/src/cli.ts server --login` and confirm the server starts without any database errors. Test coverage coming as a part of the larger boot protocol discussion, see #1379.
- Loading branch information
Showing
4 changed files
with
121 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters