mirror of
https://github.com/matrix-org/dendrite.git
synced 2024-11-26 00:01:55 -06:00
make the explainitation better
Co-authored-by: Till <2353100+S7evinK@users.noreply.github.com>
This commit is contained in:
parent
8e34a0733b
commit
1b4fc3728f
|
@ -235,8 +235,8 @@ type Relations interface {
|
||||||
// will be returned, inclusive of the "to" position but excluding the "from" position. The stream
|
// 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.
|
// 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)
|
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
|
// SelectThreads will find threads from a room, if userID is not empty
|
||||||
// if userID is not empty then it will only include the threads that the user has participated
|
// 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)
|
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
|
// 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
|
// should be if there are no boundaries supplied (i.e. we want to work backwards but don't have a
|
||||||
|
|
Loading…
Reference in a new issue