mirror of
https://github.com/1f349/dendrite.git
synced 2024-12-23 08:44:11 +00:00
35b7cbd5d8
* 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 |
||
---|---|---|
.. | ||
postgres | ||
sqlite3 | ||
tables | ||
interface.go | ||
storage_wasm.go | ||
storage.go |