Repository navigation
feat(postgres): add TransactionAwareAggregateRepository for unit-of-work pattern - #369
Merged
Merged
Conversation
iitsdani
enabled auto-merge (squash)
October 2, 2026 09:00
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #369 +/- ##
==========================================
+ Coverage 81.73% 88.18% +6.45%
==========================================
Files 37 36 -1
Lines 1177 1041 -136
==========================================
- Hits 962 918 -44
+ Misses 151 123 -28
+ Partials 64 0 -64 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
iitsdani
force-pushed
the
feat/transaction-aware-aggregate-repository
branch
from
October 2, 2026 09:45
f96b358 to
9cd0aa4
Compare
Merged
iitsdani
pushed a commit
that referenced
this pull request
Oct 2, 2026
🤖 I have created a release *beep* *boop* --- <details><summary>0.4.4</summary> ## [0.4.4](v0.4.3...v0.4.4) (2026-10-02) ### Features * **postgres:** add TransactionAwareAggregateRepository for unit-of-work pattern ([#369](#369)) ([bf021ca](bf021ca)) ### Bug Fixes * **deps:** update all non-major dependencies ([#363](#363)) ([23ab466](23ab466)) * **deps:** update all non-major dependencies to v1.46.0 ([#361](#361)) ([4222124](4222124)) * **deps:** update google.golang.org/genproto digest to f8649dd ([#358](#358)) ([09cfa5e](09cfa5e)) * **deps:** update module github.com/jackc/pgx/v5 to v5.11.0 ([#362](#362)) ([e7788f8](e7788f8)) * **deps:** update module github.com/stretchr/testify to v1.12.1 ([#359](#359)) ([a88a5fc](a88a5fc)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds
TransactionAwareAggregateRepositorytopostgrespackage, for caller-owned transactions (e.g. Unit of Work pattern).TransactionAwareAggregateRepositoryimplementsaggregate.Repositorywithout requiring a connection pool.Instead, it expects a
pgx.Txbe injected into context, and requires specifying the function to fetch thepgx.Txfrom context.