Files
turso/core
Pekka Enberg a48198ec60 Merge 'Rollback simple support' from Pere Diaz Bou
Support for simple interactive rollback like:
```sql
    create table t (x);
    insert into t values (1);
    begin;
    insert into t values (2);
    rollback;
    select * from t;
```
This PR also fixes some other issues I found while debugging:
* Checkpoint would never `clear_dirty` on pages in page cache.
* Auto commit for interactive transactions was not respected so any
`insert` after `begin` would flush frames regardless of `auto_commit`
state.
* `max_frame` on wal shared state was being updated after every
`append_frame` which was incorrect, as another transaction would be able
to use that new `max_frame` even tho the transaction could've rolled
back. Instead we update the private copy of `max_frame` and only update
it at the end.
Follow up for later are savepoints which require implementing a
subjournal to track savepoints and their modified pages.

Closes #1825
2025-06-25 20:02:09 +03:00
..
2025-06-23 19:52:13 +01:00
2025-06-23 19:52:13 +01:00
2025-06-23 19:52:13 +01:00
2025-06-23 19:52:13 +01:00
2025-06-23 19:52:13 +01:00
2025-06-23 19:52:13 +01:00
2025-06-23 19:52:13 +01:00
2025-01-28 14:55:38 -05:00
2025-06-23 19:52:13 +01:00
2025-06-11 14:19:06 -03:00
2025-01-28 14:55:38 -05:00
2025-06-23 19:52:13 +01:00
2024-12-24 18:04:30 +01:00
2025-06-23 19:52:13 +01:00
2025-06-23 19:52:13 +01:00
2025-06-23 19:52:13 +01:00
2025-06-23 19:52:13 +01:00