Earlier quoted context omitted.
Yeah but I feel like it could be used for that, if only retrieval and storage could be done incrementally…
Correct. I think this could be done, but I would need to think a little about how best to. Thank you for the idea!
* Queries are encoded into sql and matcher functions
* Whenever data is mutated a change set is emitted - eg similar to immer
* This change set is used to generate SQL UPDATE statements
* The change set is also sent to matcher functions, the matcher functions update the query results accordingly