dendrite/roomserver/storage/sqlite3
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
..
deltas State storage refactor (#1839) 2021-04-26 13:25:57 +01:00
event_json_table.go State storage refactor (#1839) 2021-04-26 13:25:57 +01:00
event_state_keys_table.go State storage refactor (#1839) 2021-04-26 13:25:57 +01:00
event_types_table.go State storage refactor (#1839) 2021-04-26 13:25:57 +01:00
events_table.go State storage refactor (#1839) 2021-04-26 13:25:57 +01:00
invite_table.go State storage refactor (#1839) 2021-04-26 13:25:57 +01:00
membership_table.go State storage refactor (#1839) 2021-04-26 13:25:57 +01:00
previous_events_table.go State storage refactor (#1839) 2021-04-26 13:25:57 +01:00
published_table.go State storage refactor (#1839) 2021-04-26 13:25:57 +01:00
redactions_table.go State storage refactor (#1839) 2021-04-26 13:25:57 +01:00
room_aliases_table.go State storage refactor (#1839) 2021-04-26 13:25:57 +01:00
rooms_table.go State storage refactor (#1839) 2021-04-26 13:25:57 +01:00
state_block_table.go State storage refactor (#1839) 2021-04-26 13:25:57 +01:00
state_block_table_test.go Support sqlite in addition to postgres (#869) 2020-02-13 17:27:33 +00:00
state_snapshot_table.go State storage refactor (#1839) 2021-04-26 13:25:57 +01:00
storage.go State storage refactor (#1839) 2021-04-26 13:25:57 +01:00
transactions_table.go State storage refactor (#1839) 2021-04-26 13:25:57 +01:00