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

feat: add @nestjs-cls/transactional-adapter-pg-promise #110

Merged

Conversation

sam-artuso
Copy link
Contributor

@nestjs-cls/transactional adapter for pg-promise.

Two caveats:

  • pg-promise is Postgres-specific, so the tests require docker-compose.
  • For now, the options are typed with any.

Apart from these 2 points, my adapter is the same as the those for Knex and Prisma.

@sam-artuso sam-artuso marked this pull request as draft January 23, 2024 21:22
@sam-artuso
Copy link
Contributor Author

@Papooch your feedback is very welcome!

@sam-artuso sam-artuso force-pushed the feat/transactional-adapter-pg-promise branch from aa68751 to 5239af0 Compare January 25, 2024 22:32
@sam-artuso sam-artuso marked this pull request as ready for review January 26, 2024 09:24
@Papooch Papooch force-pushed the feat/transactional-adapter-pg-promise branch from 428df06 to b018377 Compare January 26, 2024 09:45
@Papooch
Copy link
Owner

Papooch commented Jan 26, 2024

@sam-artuso Sorry, I accidentally clicked the update branch button instead of allow tests which rebased your changes. You might need to force-push again to clean this up.

Btw, could you also please add documentation to docs/docs/06_plugins/01_available-plugins/01_transactional/03-pg-promise-adapter.md?

@sam-artuso sam-artuso force-pushed the feat/transactional-adapter-pg-promise branch 4 times, most recently from ad4b375 to 53847fc Compare January 28, 2024 17:59
@sam-artuso sam-artuso force-pushed the feat/transactional-adapter-pg-promise branch from d3e40d5 to 91d385a Compare January 29, 2024 14:21
@Papooch Papooch changed the title @nestjs-cls/transactional - pg-promise adapter feat: add @nestjs-cls/transactional-adapter-pg-promise Jan 29, 2024
Copy link
Owner

@Papooch Papooch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It has been a long journey. but we're done. Good job 👍

@Papooch Papooch merged commit a256fa9 into Papooch:main Jan 29, 2024
2 checks passed
@sam-artuso
Copy link
Contributor Author

Thanks!

@sam-artuso
Copy link
Contributor Author

When do you think you'll release this?

@Papooch
Copy link
Owner

Papooch commented Jan 29, 2024

I'll most likely publish it later today with some other changes I'm working on.

@Papooch
Copy link
Owner

Papooch commented Jan 29, 2024

It has now been published 🚀

@sam-artuso
Copy link
Contributor Author

🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants