CSCfi / CSCfi/rems

Refactor DB query functions

Open
#2,971 0 comments 0 reactions 0 assignees View on GitHub
Technical Debt
Dominant language
Clojure
Stars
66
Forks
28
Avg merge
7d 4h
Merged PRs (30d)
2

Description

Refactor DB query functions which could have a "search" function with `0..n` and singular "get" function with `0..n` and return `:1`.

```
-- :name get-application-events :? :*
-- :name get-application-event :? :*
```
Former should be a "search" that can return many, and has filters. The latter should always return at most one result, and not a sequence.

Consider writing an ADR about the conventions.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.