dendrite/roomserver/storage
Neil Alexander 5ce1fe80de
State storage refactor (#1839)
* Hash-deduplicated state storage (and migrations) for PostgreSQL and SQLite

* Refactor droomserver database setup for migrations

* Fix conflict statements

* Update migration names

* Set a boundary for old to new block/snapshot IDs so we don't rewrite them more than once accidentally

* Create sequence if not exists

* Fix boundary queries

* Fix boundary queries

* Use Query

* Break out queries a bit

* More sequence tweaks

* Query parameters are not playing the game

* Injection escaping may not work for CREATE SEQUENCE after all

* Fix snapshot sequence name

* Use boundaried IDs in SQLite too

* Use IFNULL for SQLite

* Use COALESCE in PostgreSQL

* Review comments @Kegsay
2021-04-26 13:25:57 +01:00
..
postgres State storage refactor (#1839) 2021-04-26 13:25:57 +01:00
shared State storage refactor (#1839) 2021-04-26 13:25:57 +01:00
sqlite3 State storage refactor (#1839) 2021-04-26 13:25:57 +01:00
tables State storage refactor (#1839) 2021-04-26 13:25:57 +01:00
interface.go Pass pointers to events — reloaded (#1583) 2020-11-16 15:44:53 +00:00
storage.go Top-level setup package (#1605) 2020-12-02 17:41:00 +00:00
storage_wasm.go Top-level setup package (#1605) 2020-12-02 17:41:00 +00:00