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