pedrocarlo
e93add6c80
remove dyn DatabaseStorage and replace it with DatabaseFile
2025-10-03 14:14:15 -03:00
rajajisai
89caa868f9
Encryption support for database header page
2025-09-16 10:04:30 -04:00
Pekka Enberg
2131a04b7d
core: Rename IO::run_once() to IO::step()
...
The `run_once()` name is just a historical accident. Furthermore, it now
started to appear elsewhere as well, so let's just call it IO::step() as we
should have from the beginning.
2025-09-10 14:36:02 +03:00
Pekka Enberg
12cf4d2e72
core: Make strict schema support experimental
...
It's not tested properly so let's mark it as experimental for now.
Fixes #2775
2025-09-02 16:40:02 +03:00
Nikita Sivukhin
c62b87d9b6
read from database file only if max_frame_read_lock_index is 0 and max_frame > min_frame
...
- transaction which was started with max_frame = 0 and max_frame_read_lock_index = 0
can write to the WAL and in this case it needs to read data back from WAL
- without cache spilling its hard to reproduce this issue for the turso-db now,
but I stumbled into this issue with sync-engine which do weird stuff with the WAL
which "simulates" cache spilling behaviour to some extent
2025-08-25 11:36:58 +04:00
Nikita Sivukhin
fdb80746be
fix clippy
2025-08-21 18:28:16 +04:00
Nikita Sivukhin
b7c033be20
add tests
2025-08-21 18:28:16 +04:00
Nikita Sivukhin
f6729ccc36
fix clippy
2025-08-21 18:27:54 +04:00
Nikita Sivukhin
89e180c2a8
add few tests
2025-08-21 18:27:54 +04:00
Nikita Sivukhin
d7e47c1268
fix bug - continue checkpoint as usual even if frames range is degenerate
2025-08-21 17:37:19 +04:00
Nikita Sivukhin
c34d884b6e
fix tests
2025-08-21 15:24:21 +04:00
Nikita Sivukhin
144a31192f
fix clippy
2025-08-21 14:13:26 +04:00
Nikita Sivukhin
05931f70ce
add optional upper_bound_inclusive parameter to some checkpoint modes
...
- will be used in sync-engine protocol
2025-08-21 14:12:11 +04:00
Nikita Sivukhin
76bdf0c1ab
small fixes
2025-08-04 17:02:53 +04:00
Nikita Sivukhin
2e23230e79
extend raw WAL API with few more methods
...
- try_wal_watermark_read_page - try to read page from the DB with given WAL watermark value
- wal_changed_pages_after - return set of unique pages changed after watermark WAL position
2025-08-04 16:55:50 +04:00
Nikita Sivukhin
83b1e99a61
fix compilation
2025-08-04 12:53:07 +04:00
Jussi Saurio
438cbf2872
test/wal api: add comment about purpose of rollback test
2025-07-30 18:17:07 +03:00
Nikita Sivukhin
d8be1cbef1
fix after rebase
2025-07-28 17:20:57 +04:00
Nikita Sivukhin
4d25cda1e2
slightly adjust one test
2025-07-28 17:20:10 +04:00
Nikita Sivukhin
eb32ea49e6
fix tests
2025-07-28 17:20:10 +04:00
Nikita Sivukhin
27fcb81f48
add more complex schema changes test for raw WAL API
2025-07-24 22:43:31 +04:00
Nikita Sivukhin
10836510df
remove tracing_subscriber
2025-07-24 11:52:07 +04:00
Nikita Sivukhin
6daa6d07f1
re-parse schema if necessary after WAL sync end
2025-07-24 11:52:07 +04:00
Nikita Sivukhin
fb83862013
fix clippy
2025-07-24 11:49:39 +04:00
Nikita Sivukhin
435ca7fe7a
add fuzz tests for raw WAL API
2025-07-24 11:49:39 +04:00
Nikita Sivukhin
2283a04aab
add more tests
2025-07-23 11:31:00 +04:00
Nikita Sivukhin
16763e1500
implement raw WAL write api
2025-07-23 11:30:59 +04:00