aboutsummaryrefslogtreecommitdiff
path: root/syncapi/storage/postgres/account_data_table.go
diff options
context:
space:
mode:
authorKegsay <kegan@matrix.org>2020-04-28 15:50:24 +0100
committerGitHub <noreply@github.com>2020-04-28 15:50:24 +0100
commit35b7cbd5d8673d8ea82b36d90d9ad5b79dc3c5b7 (patch)
tree6cf598055ed71506a0c617f314908e5a7ae13d8a /syncapi/storage/postgres/account_data_table.go
parent5071ecb8b3c51b3cf70794fd2dbcfd1a866058e3 (diff)
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
Diffstat (limited to 'syncapi/storage/postgres/account_data_table.go')
0 files changed, 0 insertions, 0 deletions