-
Notifications
You must be signed in to change notification settings - Fork 239
Issue 90 - Query builder interface #105
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
Conversation
db.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How come you have Join, LeftJoin, FullJoin, etc... on the Result interface? why not keep the Result the same and have just the Builder() have those methods? for example, similar to how upper.io/db v2 already works with squirrel in the Pressly API. Keeps builder separated from basic result set operations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the QueryBuilder, instead of returning a Result, should return a Query type
Issue 90 - Query builder interface
Issue #90