1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-20 15:21:00 +00:00
serenity/Tests/LibSQL
Jelle Raaijmakers 6601ff9d65 LibSQL: Redesign heap storage to support arbitrary amounts of data
Previously, `Heap` would store serialized data in blocks of 1024 bytes
regardless of the actual length. Data longer than 1024 bytes was
silently truncated causing database corruption.

This changes the heap storage to prefix every block with two new fields:
the total data size in bytes, and the next block to retrieve if the data
is longer than what can be stored inside a single block. By chaining
blocks together, we can store arbitrary amounts of data without needing
to change anything of the logic in the rest of LibSQL.

As part of these changes, the "free list" is also removed from the heap
awaiting an actual implementation: it was never used.

Note that this bumps the database version from 3 to 4, and as such
invalidates (deletes) any database opened with LibSQL that is not
version 4.
2023-04-23 18:08:17 -04:00
..
CMakeLists.txt Tests: Remove all file(GLOB) from CMakeLists in Tests 2021-09-02 09:08:23 +02:00
TestSqlBtreeIndex.cpp LibSQL: Redesign heap storage to support arbitrary amounts of data 2023-04-23 18:08:17 -04:00
TestSqlDatabase.cpp LibSQL: Rename Heap constants to match our code style 2023-04-23 18:08:17 -04:00
TestSqlExpressionParser.cpp AK: Remove StringBuilder::build() in favor of to_deprecated_string() 2023-01-27 20:38:49 +00:00
TestSqlHashIndex.cpp LibSQL: Redesign heap storage to support arbitrary amounts of data 2023-04-23 18:08:17 -04:00
TestSqlStatementExecution.cpp LibSQL: Redesign heap storage to support arbitrary amounts of data 2023-04-23 18:08:17 -04:00
TestSqlStatementParser.cpp Everywhere: Stop using NonnullRefPtrVector 2023-03-06 23:46:35 +01:00
TestSqlValueAndTuple.cpp LibSQL: Support 64-bit integer values and handle overflow errors 2022-12-14 09:21:30 -05:00