Skip to content

Commit

Permalink
make the explainitation better
Browse files Browse the repository at this point in the history
Co-authored-by: Till <[email protected]>
  • Loading branch information
qwqtoday and S7evinK committed Aug 27, 2024
1 parent 8e34a07 commit 1b4fc37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syncapi/storage/tables/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ type Relations interface {
// will be returned, inclusive of the "to" position but excluding the "from" position. The stream
// position returned is the maximum position of the returned results.
SelectRelationsInRange(ctx context.Context, txn *sql.Tx, roomID, eventID, relType, eventType string, r types.Range, limit int) (map[string][]types.RelationEntry, types.StreamPosition, error)
// SelectThreads this will find some threads from a room
// if userID is not empty then it will only include the threads that the user has participated
// SelectThreads will find threads from a room, if userID is not empty
// then it will only include the threads that the user has participated in.
SelectThreads(ctx context.Context, txn *sql.Tx, roomID, userID string, from types.StreamPosition, limit uint64) ([]string, types.StreamPosition, error)
// SelectMaxRelationID returns the maximum ID of all relations, used to determine what the boundaries
// should be if there are no boundaries supplied (i.e. we want to work backwards but don't have a
Expand Down

0 comments on commit 1b4fc37

Please sign in to comment.