make the explainitation better

Co-authored-by: Till <2353100+S7evinK@users.noreply.github.com>
This commit is contained in:
Lukas 2024-08-27 23:29:04 +08:00 committed by GitHub
parent 8e34a0733b
commit 1b4fc3728f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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