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

Each repo for each entity? #108

Closed
abrekhov opened this issue Dec 28, 2021 · 1 comment
Closed

Each repo for each entity? #108

abrekhov opened this issue Dec 28, 2021 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@abrekhov
Copy link

Hi!

If there will be more than one entity, but all of them shares one db connection: do we need to initialize each repo separately (like here https://github.com/Creatly/creatly-backend/blob/483b7788a66b0b077e42948510c7fd0acd58eec1/internal/repository/admins_mongo.go) or there can be other logic?

Your template is awesome! Thanks!

@sashamelentyev sashamelentyev added the question Further information is requested label Dec 28, 2021
@neprja
Copy link
Contributor

neprja commented Jan 10, 2022

Hi!
I like to use one repository better. But this is not strict.

@neprja neprja closed this as completed Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants