Line data Source code
1 4 : (ns matchscore.domain.bracket-match.query
2 : (:require
3 : [matchscore.domain.bracket-match.repository.postgres :as postgres-repo]))
4 :
5 :
6 4 : (defn get-bracket-match
7 : "Retrieves a bracket match by ID. Returns BracketMatch map or nil."
8 : [repo id]
9 4 : (postgres-repo/find-by-id repo id))
10 :
11 :
12 4 : (defn get-bracket-matches-by-round
13 : "Retrieves all matches in a bracket round, ordered by match-number. Returns seq."
14 : [repo bracket-round-id]
15 4 : (postgres-repo/find-by-bracket-round-id repo bracket-round-id))
16 :
17 :
18 4 : (defn get-bracket-matches-by-round-ids
19 : "Retrieves all matches for multiple rounds in one batch. Returns seq."
20 : [repo bracket-round-ids]
21 4 : (postgres-repo/find-by-bracket-round-ids repo bracket-round-ids))
22 :
23 :
24 4 : (defn get-bracket-matches-by-ids
25 : "Retrieves bracket matches by multiple UUIDs. Returns seq."
26 : [repo ids]
27 4 : (postgres-repo/find-by-ids repo ids))
28 :
29 :
30 4 : (defn search-bracket-matches
31 : "Search bracket matches by filters and pagination. Returns paginated result."
32 : [repo filters pagination]
33 5 : (postgres-repo/search repo filters pagination))
|