aboutsummaryrefslogtreecommitdiff
path: root/roomserver/storage/sqlite3/invite_table.go
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2021-07-28 18:30:04 +0100
committerKegan Dougal <kegan@matrix.org>2021-07-28 18:30:04 +0100
commited4097825bc65f2332bcdc975ed201841221ff7c (patch)
tree4ac6270fa282b1d13ac73c97e4078f1961dbdf4e /roomserver/storage/sqlite3/invite_table.go
parent9e4618000e0347741eac1279bf6c94c3b9980785 (diff)
Factor out StatementList to `sqlutil` and use it in `userapi`
It helps with the boilerplate.
Diffstat (limited to 'roomserver/storage/sqlite3/invite_table.go')
-rw-r--r--roomserver/storage/sqlite3/invite_table.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/roomserver/storage/sqlite3/invite_table.go b/roomserver/storage/sqlite3/invite_table.go
index e1aa1ebd..c1d7347a 100644
--- a/roomserver/storage/sqlite3/invite_table.go
+++ b/roomserver/storage/sqlite3/invite_table.go
@@ -21,7 +21,6 @@ import (
"github.com/matrix-org/dendrite/internal"
"github.com/matrix-org/dendrite/internal/sqlutil"
- "github.com/matrix-org/dendrite/roomserver/storage/shared"
"github.com/matrix-org/dendrite/roomserver/storage/tables"
"github.com/matrix-org/dendrite/roomserver/types"
)
@@ -80,7 +79,7 @@ func prepareInvitesTable(db *sql.DB) (tables.Invites, error) {
db: db,
}
- return s, shared.StatementList{
+ return s, sqlutil.StatementList{
{&s.insertInviteEventStmt, insertInviteEventSQL},
{&s.selectInviteActiveForUserInRoomStmt, selectInviteActiveForUserInRoomSQL},
{&s.updateInviteRetiredStmt, updateInviteRetiredSQL},