diff options
author | Kegsay <kegan@matrix.org> | 2020-05-27 11:03:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-27 11:03:47 +0100 |
commit | a7f12bce79436fab14ed97ba1cb049384e1e3522 (patch) | |
tree | 86693129afd078beea95cacd3a0ec34ea29409b4 /roomserver/storage/postgres/transactions_table.go | |
parent | 7d6461dd3c4429303148a115d72b1b3b0ebaba72 (diff) |
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
Diffstat (limited to 'roomserver/storage/postgres/transactions_table.go')
-rw-r--r-- | roomserver/storage/postgres/transactions_table.go | 5 |
1 files changed, 3 insertions, 2 deletions
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( |