dendrite/syncapi/storage/postgres
Kegsay 35b7cbd5d8
sql/backwards_extremities: Shift to table format and share code (#985)
* sql/backwards_extremities: Shift to table format and share code

This is an initial cut to reduce boilerplate at the storage layer.
It removes the need for 2x `_table.go` files, one for each DB engine,
replacing it with a single struct which has an interface which
implements the raw SQL statements.

The actual impl sits alongside the interface declaration which is
generally regarded as best practice (though no canonical sources).
Especially in this case where the impl is tiny (functions returning
strings) and relies heavily on the function signatures of the
table struct (for parameters), having the context in the same file
is useful.

* Remove _table redundancy
2020-04-28 15:50:24 +01:00
..
account_data_table.go Log errors from rows.Close (#920) 2020-03-18 10:17:18 +00:00
current_room_state_table.go HeaderedEvents in sync API (#922) 2020-03-19 12:07:01 +00:00
filtering.go
invites_table.go HeaderedEvents in sync API (#922) 2020-03-19 12:07:01 +00:00
output_room_events_table.go Implement backfill over federation (#938) 2020-03-24 12:20:10 +00:00
output_room_events_topology_table.go HeaderedEvents in sync API (#922) 2020-03-19 12:07:01 +00:00
syncserver.go sql/backwards_extremities: Shift to table format and share code (#985) 2020-04-28 15:50:24 +01:00