mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-29 14:04:22 +01:00
Closes #2219 ## What Ephemeral tables and indexes should use a temporary database file instead of being backed only by memory. ## Why This makes them able to spill to disk when necessary when their page cache is nearing its memory limit. However, they should spill directly to the temporary database file without WAL journaling, since a WAL is not necessary (or even desirable) for ephemeral tables. Spilling is not implemented yet for any use case - this is just an enabler for it. ## Implementation details - Create random filename using `io.generate_random_number()` in platform-specific temporary directory - Make `pager.wal` an optional property again, removing `DummyWAL` - Remove `FileMemoryStorage` as it is never used Closes #2315