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(transactional-adapter-mikro-orm): add mikro orm adapter #185

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

whileloop99
Copy link

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.

Thank you for the PR.

I only left minor nitpicks, but I also just noticed that MikroORM also comes with its own @Transactional decorator, so the adapter might not be needed after all (unless there's some use case, in which the built-in support is inferior).

},
"peerDependencies": {
"@mikro-orm/core": "^6.4.0",
"@mikro-orm/postgresql": "^6.4.0",
Copy link
Owner

Choose a reason for hiding this comment

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

I don't think the postgres driver needs to be in peer dependencies, it is only used dot tests.

/**
* The injection token for the MikroORM instance.
*/
dataSourceToken: any;
Copy link
Owner

Choose a reason for hiding this comment

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

This option should be called something like mikroOrmInstance

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