mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-29 04:44:23 +01:00
This issue was introduced in #819. However, I believe the solution is suboptimal because `pragma page_count` can never return 1, which is inconsistent with SQLite. <img width="442" alt="image" src="https://github.com/user- attachments/assets/c772eae7-3e9f-4687-a94a-230deb0eb034" /> To align with SQLite's behavior, we should allocate the first page when the first schema object is created, rather than immediately after creating database. And it's always preferable to return an accurate page count. Reviewed-by: Pere Diaz Bou <pere-altea@homail.com> Closes #1407