0018 - Repository Pattern for Database Access¶
Date¶
2024-05-16
Status¶
Accepted
Context¶
We need a consistent way to access data in application code without coupling business logic directly to ORM/query details.
Decision¶
We will use a repository pattern for database access.
Consequences¶
Repositories give us a clearer seam between domain/application logic and persistence concerns, make testing easier, and reduce the tendency for query logic to leak through the whole codebase.