Skip to content

Commit 954b9de

Browse files
committed
Prepare release 3.0.0
1 parent 659d0a6 commit 954b9de

3 files changed

Lines changed: 78 additions & 53 deletions

File tree

‎packages/mysql-on-sqlite/src/version.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
*
1010
* This constant needs to be updated on plugin release!
1111
*/
12-
define( 'SQLITE_DRIVER_VERSION', '3.0.0-rc.9' );
12+
define( 'SQLITE_DRIVER_VERSION', '3.0.0' );

‎packages/plugin-sqlite-database-integration/load.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: SQLite Database Integration
44
* Description: SQLite database driver drop-in.
55
* Author: The WordPress Team
6-
* Version: 3.0.0-rc.9
6+
* Version: 3.0.0
77
* Requires PHP: 7.2
88
* Network: true
99
* Textdomain: sqlite-database-integration

‎packages/plugin-sqlite-database-integration/readme.txt‎

Lines changed: 76 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Contributors: wordpressdotorg, aristath, janjakes, zieladam, berislav.grgic
44
Requires at least: 6.4
55
Tested up to: 7.0
66
Requires PHP: 7.2
7-
Stable tag: 3.0.0-rc.9
7+
Stable tag: 3.0.0
88
License: GPLv2 or later
99
License URI: https://www.gnu.org/licenses/gpl-2.0.html
1010
Tags: sqlite, database
@@ -66,73 +66,92 @@ Yes. The plugin replaces the default MySQL-based database layer with an SQLite-b
6666

6767
== Changelog ==
6868

69-
= 3.0.0-rc.9 =
69+
= 3.0.0 =
7070

71-
* Reject invalid `BIT` column defaults ([#487](https://github.com/WordPress/sqlite-database-integration/pull/487))
72-
* Make Composer packages installable ([#486](https://github.com/WordPress/sqlite-database-integration/pull/486))
73-
* Remove `INET_ATON()` WordPress dependency ([#485](https://github.com/WordPress/sqlite-database-integration/pull/485))
74-
* Restore database version support for older WordPress releases ([#484](https://github.com/WordPress/sqlite-database-integration/pull/484))
75-
* Finalize MySQL-on-SQLite 3.0 refinements ([#482](https://github.com/WordPress/sqlite-database-integration/pull/482))
76-
* Prefix SQLite-specific constructor options ([#481](https://github.com/WordPress/sqlite-database-integration/pull/481))
77-
* Unify emulated MySQL server identity ([#479](https://github.com/WordPress/sqlite-database-integration/pull/479))
78-
* Document the 3.0 driver API ([#477](https://github.com/WordPress/sqlite-database-integration/pull/477))
79-
* Expand PDO API coverage ([#471](https://github.com/WordPress/sqlite-database-integration/pull/471))
80-
* Refine the 3.0 API surface ([#469](https://github.com/WordPress/sqlite-database-integration/pull/469))
81-
* Add `ANSI_QUOTES` and SQL mode validation ([#452](https://github.com/WordPress/sqlite-database-integration/pull/452))
71+
**SQLite Database Integration 3 is here! 🎉**
8272

83-
= 3.0.0-rc.8 =
73+
This release introduces an **all-new SQLite database driver for WordPress**, rebuilt from the ground up. Its purpose-built MySQL lexer, parser, and emulation layer deliver broader compatibility, more accurate behavior, and a stronger foundation for future improvements.
8474

85-
* Preserve aliases in `UPDATE JOIN` translation ([#462](https://github.com/WordPress/sqlite-database-integration/pull/462))
86-
* Restrict SQLite installation permissions ([#464](https://github.com/WordPress/sqlite-database-integration/pull/464))
87-
* Improve string escaping ([#466](https://github.com/WordPress/sqlite-database-integration/pull/466))
88-
* Stabilize WordPress E2E tests ([#459](https://github.com/WordPress/sqlite-database-integration/pull/459))
89-
* Address WordPress PHPUnit test fails: charset detection, length validation etc ([#331](https://github.com/WordPress/sqlite-database-integration/pull/331))
90-
* Add Unicode support to the user-defined `REVERSE()` function ([#453](https://github.com/WordPress/sqlite-database-integration/pull/453))
91-
* Simplify the MySQL-on-SQLite driver API ([#449](https://github.com/WordPress/sqlite-database-integration/pull/449))
92-
* Add WordPress 7.0 compatibility ([#450](https://github.com/WordPress/sqlite-database-integration/pull/450))
75+
The 3.0 release spans nearly two years of work, featuring [160 pull requests](https://github.com/WordPress/sqlite-database-integration/milestone/3?closed=1) and 1,075 commits from 15 contributors.
9376

94-
= 3.0.0-rc.7 =
77+
**What's new**
9578

96-
* Preserve configured SQLite journal mode in driver wrapper ([#447](https://github.com/WordPress/sqlite-database-integration/pull/447))
97-
* Release 3.0.0-rc.6 ([#444](https://github.com/WordPress/sqlite-database-integration/pull/444))
79+
The new driver advances SQLite support for WordPress, plugins, database tools, and other MySQL-based applications. These improvements include:
9880

99-
= 3.0.0-rc.6 =
81+
* **New SQL engine:** The pure-PHP lexer and parser provide extensive coverage of the official MySQL grammar.
82+
* **Broad query support:** Complex joins, subqueries, CTEs, unions, and other advanced queries are now supported.
83+
* **Schema emulation:** WordPress and database tools can query emulated MySQL `INFORMATION_SCHEMA` tables.
84+
* **Schema introspection:** `SHOW` and `DESCRIBE` statements provide accurate MySQL-like metadata.
85+
* **Improved data handling:** Types, casts, defaults, auto-increment, values, and escaping better match MySQL.
86+
* **Refined MySQL semantics:** Better emulation of SQL modes, variables, functions, transactions, and errors.
87+
* **Better concurrency:** Write-ahead logging and fewer locks reduce blocking between readers and writers.
88+
* **PDO API:** The new driver implements the PDO MySQL API, supporting many MySQL-based tools and applications.
89+
* **Extensive testing:** Test suites cover parsing, translation, metadata, concurrency, PDO, and end-to-end workflows.
10090

101-
* Don't take a write lock for SET statements (fixes "database is locked" on connect) ([#443](https://github.com/WordPress/sqlite-database-integration/pull/443))
102-
* Add REVERSE() to user defined functions ([#434](https://github.com/WordPress/sqlite-database-integration/pull/434))
103-
* LALR(1) parser from official MySQL grammar ([#429](https://github.com/WordPress/sqlite-database-integration/pull/429))
91+
For more information about the new driver and its architecture, read the [driver announcement](https://make.wordpress.org/playground/2025/06/13/introducing-a-new-sqlite-driver-for-wordpress/).
10492

105-
= 3.0.0-rc.5 =
93+
**Modular design**
10694

107-
* Default SQLite connections to WAL ([#405](https://github.com/WordPress/sqlite-database-integration/pull/405))
95+
The project was redesigned as a set of focused packages, separating the core driver from its WordPress integration:
10896

109-
= 3.0.0-rc.4 =
97+
* [SQLite Database Integration](https://github.com/WordPress/sqlite-database-integration/tree/v3.0.0/packages/plugin-sqlite-database-integration): The **WordPress plugin** powered by MySQL on SQLite.
98+
* [MySQL on SQLite](https://github.com/WordPress/sqlite-database-integration/tree/v3.0.0/packages/mysql-on-sqlite): A standalone **PDO MySQL drop-in** for running MySQL-based PHP applications on SQLite.
99+
* [MySQL proxy](https://github.com/WordPress/sqlite-database-integration/tree/v3.0.0/packages/mysql-proxy) (experimental): A **MySQL wire protocol bridge** to PDO-compatible drivers for clients outside PHP.
110100

111-
* Normalize BIT column default literals ([#439](https://github.com/WordPress/sqlite-database-integration/pull/439))
112-
* Optimize MySQL lexer (~2× speedup) ([#424](https://github.com/WordPress/sqlite-database-integration/pull/424))
113-
* Fix `RAND()` function behavior ([#363](https://github.com/WordPress/sqlite-database-integration/pull/363))
114-
* CI: Disable Xdebug, use Rust release builds, consolidate unit-test matrix ([#425](https://github.com/WordPress/sqlite-database-integration/pull/425))
115-
* GitHub Actions workflow updates ([#404](https://github.com/WordPress/sqlite-database-integration/pull/404))
116-
* Add native Rust-based MySQL parser extension ([#381](https://github.com/WordPress/sqlite-database-integration/pull/381), [#384](https://github.com/WordPress/sqlite-database-integration/pull/384), [#386](https://github.com/WordPress/sqlite-database-integration/pull/386), [#389](https://github.com/WordPress/sqlite-database-integration/pull/389), [#390](https://github.com/WordPress/sqlite-database-integration/pull/390), [#394](https://github.com/WordPress/sqlite-database-integration/pull/394), [#398](https://github.com/WordPress/sqlite-database-integration/pull/398))
117-
* Ship native parser as WASM ([#395](https://github.com/WordPress/sqlite-database-integration/pull/395), [#396](https://github.com/WordPress/sqlite-database-integration/pull/396), [#397](https://github.com/WordPress/sqlite-database-integration/pull/397), [#399](https://github.com/WordPress/sqlite-database-integration/pull/399), [#400](https://github.com/WordPress/sqlite-database-integration/pull/400), [#401](https://github.com/WordPress/sqlite-database-integration/pull/401))
118-
* Add SQLite plugin landing page ([#407](https://github.com/WordPress/sqlite-database-integration/pull/407), [#412](https://github.com/WordPress/sqlite-database-integration/pull/412))
119-
* Check Playground web runtime compatibility ([#419](https://github.com/WordPress/sqlite-database-integration/pull/419))
101+
This architecture opens the driver to new integrations, applications, and development tools beyond WordPress.
120102

121-
= 3.0.0-rc.3 =
103+
**Upgrading to 3.0**
122104

123-
* Lexer: Fix possible OOB read in quoted strings ([#374](https://github.com/WordPress/sqlite-database-integration/pull/374))
124-
* Add support for `NO_AUTO_VALUE_ON_ZERO` SQL mode ([#366](https://github.com/WordPress/sqlite-database-integration/pull/366))
105+
Upgrading an existing SQLite site is straightforward:
125106

126-
= 3.0.0-rc.2 =
107+
1. **Back up** your SQLite database.
108+
2. **Update the plugin** to version 3.0.
127109

128-
* Support MySQL `BINARY` operator ([#369](https://github.com/WordPress/sqlite-database-integration/pull/369))
129-
* Add support for `AUTO_INCREMENT` value management ([#367](https://github.com/WordPress/sqlite-database-integration/pull/367))
130-
* Add support for `DELETE` with `LIMIT` and `ORDER BY` ([#365](https://github.com/WordPress/sqlite-database-integration/pull/365))
110+
On first connection, the new driver automatically initializes its metadata without changing your tables or content.
131111

132-
= 3.0.0-rc.1 =
112+
If you used the new driver preview, you can now delete the `WP_SQLITE_AST_DRIVER` flag.
133113

134-
* Improve concurrent database access ([#361](https://github.com/WordPress/sqlite-database-integration/pull/361))
135-
* Remove legacy SQLite driver ([#358](https://github.com/WordPress/sqlite-database-integration/pull/358))
114+
**Breaking changes**
115+
116+
Most WordPress sites need no changes. Review the following if you use a custom setup:
117+
118+
* **New driver:**
119+
* The new driver is always used. The legacy driver was removed.
120+
* The `WP_SQLITE_AST_DRIVER` feature flag was removed.
121+
* **Updated SQLite version requirements:**
122+
* SQLite `3.37.0` or newer is required.
123+
* The `WP_SQLITE_UNSAFE_ENABLE_UNSUPPORTED_VERSIONS` opt-in enables limited SQLite `3.27.0`–`3.36.x` support.
124+
* **`DB_NAME` is required:**
125+
* It must be defined and non-empty.
126+
* It is used dynamically, independently of the SQLite file name and stored metadata.
127+
* **SQLite defaults have changed:**
128+
* Journal mode now defaults to [`WAL`](https://sqlite.org/wal.html). Account for `-wal` and `-shm` sidecar files.
129+
* Synchronous mode now defaults to [`NORMAL`](https://sqlite.org/pragma.html#pragma_synchronous) in `WAL` mode.
130+
* **Updated configuration constants:**
131+
* `DATABASE_ENGINE` was removed. Use `DB_ENGINE`.
132+
* `DATABASE_TYPE` is deprecated. Use `DB_ENGINE`.
133+
* `FQDBDIR` is deprecated. Use `DB_DIR`.
134+
* `FQDB` is deprecated. Use `DB_DIR` and `DB_FILE`.
135+
* **Updated driver classes:**
136+
* `WP_SQLite_Driver` is deprecated. Use `WP_MySQL_On_SQLite`.
137+
* `WP_PDO_MySQL_On_SQLite` was replaced by `WP_MySQL_On_SQLite`.
138+
* `WP_SQLite_Driver_Exception` was replaced by `WP_MySQL_On_SQLite_Exception`.
139+
* `WP_PDO_Proxy_Statement` was replaced by `WP_MySQL_On_SQLite_Statement`.
140+
* **Sunsetting `$GLOBALS['@pdo']`:**
141+
* Injecting a PDO connection through `$GLOBALS['@pdo']` is no longer supported.
142+
* Reading `$GLOBALS['@pdo']` is deprecated. Use `$wpdb->get_driver()->get_sqlite_pdo()`.
143+
* **Renamed driver constructor options:**
144+
* `pdo` → `sqlite_pdo`.
145+
* `journal_mode` → `sqlite_journal_mode`.
146+
* `synchronous` → `sqlite_synchronous`.
147+
148+
**Thank you**
149+
150+
Thank you to everyone who helped build, test, review, and improve the new driver. Your work made this possible.
151+
152+
**3.0 milestone:** [160 pull requests](https://github.com/WordPress/sqlite-database-integration/milestone/3?closed=1)
153+
154+
**Changes since 2.2.23:** [`v2.2.23...v3.0.0`](https://github.com/WordPress/sqlite-database-integration/compare/v2.2.23...v3.0.0)
136155

137156
= 2.2.23 =
138157

@@ -150,3 +169,9 @@ Yes. The plugin replaces the default MySQL-based database layer with an SQLite-b
150169
* Monorepo setup + release automation ([#334](https://github.com/WordPress/sqlite-database-integration/pull/334))
151170
* Rework release workflow ([#350](https://github.com/WordPress/sqlite-database-integration/pull/350))
152171
* Fix incorrect PHP polyfill implementations ([#338](https://github.com/WordPress/sqlite-database-integration/pull/338))
172+
173+
== Upgrade Notice ==
174+
175+
= 3.0.0 =
176+
177+
Major release with an all-new SQLite driver. Requires SQLite 3.37.0 or newer. Back up your SQLite database before updating.

0 commit comments

Comments
 (0)