ЛА
В database/sql чтобы запросы выполнить в транзакции, нужен sql.Tx. вы это передаёте в контексте и проверяете его перед выполнением запроса?
Size: a a a
ЛА
АС
АС
АД
Н
ЛА
АС
VS
Н
ЛА
АД
ЛА
AK
- Aggregate is synonymous with transactional consistency boundary.
- A properly designed Aggregate is one that can be modified in any way required by the business with its invariants completely consistent within a single transaction.
- Every persistent Aggregate type will have a Repository. Generally speaking, there is a one-to-one relationship between an Aggregate type and a Repository.
Excerpt From: Vernon, Vaughn. “Implementing Domain-Driven Design”.
АС
- Aggregate is synonymous with transactional consistency boundary.
- A properly designed Aggregate is one that can be modified in any way required by the business with its invariants completely consistent within a single transaction.
- Every persistent Aggregate type will have a Repository. Generally speaking, there is a one-to-one relationship between an Aggregate type and a Repository.
Excerpt From: Vernon, Vaughn. “Implementing Domain-Driven Design”.