refactor: swap strings with an SQL builder #45

Merged
satprog merged 2 commits from feat/sql-builder into main 2025-09-05 21:15:21 +00:00

2 Commits

Author SHA1 Message Date
547698872d
refactor: return err from API handlers
All checks were successful
Lint PR / commitlint (pull_request) Successful in 28s
Go / build (1.22) (pull_request) Successful in 1m10s
Go / build (1.23) (pull_request) Successful in 1m8s
Go / build (1.24) (pull_request) Successful in 1m11s
Go / build (1.22) (push) Successful in 1m7s
Go / build (1.24) (push) Successful in 1m3s
Go / build (1.23) (push) Successful in 1m5s
Instead of logging + NoContent(http.StatusIntervalServerError).
Gin already logs the error when returned and returns a 500 to the client.
2025-08-24 23:27:39 +01:00
aae45814f2
refactor: swap strings with an SQL builder
Adds doug-martin/goqu as dependency.
Make tests less fragile by focusing only on relevant SQL query parts.
2025-08-24 23:27:20 +01:00