Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor DB query functions #2971

Open
Macroz opened this issue Jun 20, 2022 · 0 comments
Open

Refactor DB query functions #2971

Macroz opened this issue Jun 20, 2022 · 0 comments
Labels
Technical Debt Improving internal product quality

Comments

@Macroz
Copy link
Collaborator

Macroz commented Jun 20, 2022

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.

@Macroz Macroz added the Technical Debt Improving internal product quality label Jun 20, 2022
@Macroz Macroz mentioned this issue Jun 20, 2022
8 tasks
@Macroz Macroz added this to the Internal cleanup milestone Sep 8, 2022
@meericsc meericsc moved this to Ideas in REMS Task Board May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Technical Debt Improving internal product quality
Projects
Status: Ideas
Development

No branches or pull requests

1 participant