matrix-org/dendrite

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

Aperta

#963 aperta il 14 apr 2020

 (2 commenti) (0 reazioni) (0 assegnatari)Go (658 fork)auto 404
T-Taskgood first issue

Metriche repository

Star
 (5632 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor