-
Notifications
You must be signed in to change notification settings - Fork 1
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
Move Repository SQL implementation into own package #23
Conversation
Signed-off-by: Alejo Carballude <alejocarballude@gmail.com>
Signed-off-by: Alejo Carballude <alejocarballude@gmail.com>
I like how the naming convention looks like, but I have a concern: We don't use any Why don't we create an |
Thanks for the comments.
I used the I don't think we are likely to ever import
Mainly because options are very specific to the implementation. I expect all SQL implementations to use If we ever determine that the Firestore implementation shares options with other implementations, then we can consider renaming the |
I don't think this is an issue for having a generic query builder, and passing some sort of converter once calling the
Agreed on that, this PR looks good, and we shouldn't address the issue I'm raising right now. |
I'm not sure I'm following. Care to give an example of what you're envisioning?
+1 Appreciate the discussion! |
Closes #21.
The
repository
package provides a genericRepository
interface and a number of implementations for it. Up until this point, there had only ever been a SQL implementation, and it was defined at therepository
package level. Because both interface and implementations are all contained under a single namespace, other implementations may run into namespace collision issues with the SQL implementation.This PR moves the SQL implementation into its own package to avoid collision issues.
The new packages structure looks like this:
New implementation should be defined in their own package inside the
repository
package.