From a7f12bce79436fab14ed97ba1cb049384e1e3522 Mon Sep 17 00:00:00 2001 From: Kegsay Date: Wed, 27 May 2020 11:03:47 +0100 Subject: Convert remaining roomserver tables (#1065) * Convert invites table * Convert membership table * Factor out remaining functions except for *Updater structs * Remove 'implements' comments from long-forgotten interfaces. Move those comments to storage.Database --- roomserver/storage/postgres/transactions_table.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'roomserver/storage/postgres/transactions_table.go') diff --git a/roomserver/storage/postgres/transactions_table.go b/roomserver/storage/postgres/transactions_table.go index 7f7ef76a..5e59ae16 100644 --- a/roomserver/storage/postgres/transactions_table.go +++ b/roomserver/storage/postgres/transactions_table.go @@ -19,6 +19,7 @@ import ( "context" "database/sql" + "github.com/matrix-org/dendrite/roomserver/storage/shared" "github.com/matrix-org/dendrite/roomserver/storage/tables" ) @@ -60,10 +61,10 @@ func NewPostgresTransactionsTable(db *sql.DB) (tables.Transactions, error) { return nil, err } - return s, statementList{ + return s, shared.StatementList{ {&s.insertTransactionStmt, insertTransactionSQL}, {&s.selectTransactionEventIDStmt, selectTransactionEventIDSQL}, - }.prepare(db) + }.Prepare(db) } func (s *transactionStatements) InsertTransaction( -- cgit v1.2.3