matrix-org/dendrite

Move db-level SQL statements to the file which implements the storage interface

Open

#963 opened on Apr 14, 2020

 (2 comments) (0 reactions) (0 assignees)Go (658 forks)auto 404
T-Taskgood first issue

Repository metrics

Stars
 (5,632 stars)
PR merge metrics
 (PR metrics pending)

Description

In several places for postgres, we CREATE SEQUENCE .... We do this for every table which uses the sequence, partly for clarity and partly so we don't assume someone else has done it for us.

Instead, we should put these database-level SQL queries in a dedicated section, rather than in each _table.go.

Contributor guide