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

Queries cannot be modified once created #72

Open
shadowhand opened this issue May 21, 2018 · 0 comments
Open

Queries cannot be modified once created #72

shadowhand opened this issue May 21, 2018 · 0 comments
Assignees
Milestone

Comments

@shadowhand
Copy link
Owner

shadowhand commented May 21, 2018

Consolidating discussion from #71, #66, #58, #31 to document the plan for implementing modifications to queries. This applies mainly to SELECT but also other queries.

WIP: This issue will be modified until a clear plan is made.

Currently some methods in Latitude are additive and some are setters. For instance, columns() always changes the column list and join() always adds a new join. A full list:

method name add set
columns() x
addColumns() x
from() x
addFrom() x
join() x
where() x
andWhere() x
orWhere() x
groupBy() x
orderBy() x
limit() x
offset() x
having() x

Not all methods need to be additive and not all methods need to be setters. It should be possible to reset values that are additive.

@shadowhand shadowhand added this to the 4.0.0 milestone May 21, 2018
@shadowhand shadowhand self-assigned this May 21, 2018
@shadowhand shadowhand modified the milestones: 4.0.0, 5.0.0 Aug 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant