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

Projections to DB #675

Closed
mninawa opened this issue Jul 17, 2023 · 1 comment
Closed

Projections to DB #675

mninawa opened this issue Jul 17, 2023 · 1 comment

Comments

@mninawa
Copy link

mninawa commented Jul 17, 2023

Hi Guys,
thanx for the work done in the code, i would like to know if its possible to have Projections point to NoSQL and SQL server,
will it be a compromise if we have have SQL server.. please advise on this regard
M

@AntonioFalcaoJr
Copy link
Owner

AntonioFalcaoJr commented Aug 18, 2023

Hi Paige!

For any projection, the way is basically the same, which means adding a new projection model and a new use case interactor with all events it is interested in.

If desire a different database, the better way to do that is to create a port (interface) at the application, implement it in a new infrastructure layer (like Infrastructure.SQL) and then inject it into the respective interactor.

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

No branches or pull requests

2 participants