mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-28 05:24:22 +01:00
This is mostly refactoring Cursor.write_info to instead be an enum, where one of the options is a WriteInfo. This permits one to add other state machines to Cursor, and I added the state needed for Count as an example, but all the testing for count's implementation depends on ANALYZE #656 working end-to-end (to some degree) so that one can write a SQL test for it. But this code seems conflict-prone, so it seems better to get it in sooner than later. I also finally understood what the point of RefCell is from fighting with rust on this, so that was nice. Closes #836