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

Make the limit/offset API cleaner #142

Merged
merged 1 commit into from
Jun 26, 2017
Merged

Conversation

cdevienne
Copy link
Contributor

@cdevienne cdevienne commented Feb 15, 2017

The 'Limit()' function of SelectStmt is misleading as it also sets the OFFSET.
In some case we want thiner control on limit and offset, or not set both
at the same time.

The new functions consists of:

  • Limit(value) -> set LIMIT
  • Offset(value) -> set OFFSET
  • LimitOffset(offset, limit) -> set both OFFSET and LIMIT

This change breaks the API

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling d4ac6d2 on cdevienne:limit-offset into 80fdf52 on slicebit:master.

The 'Limit()' function of SelectStmt is misleading as it also sets the OFFSET.
In some case we want thiner control on limit and offset, or not set both
at the same time.

The new functions consists of:
- Limit(value) -> set LIMIT
- Offset(value) -> set OFFSET
- LimitOffset(limit, offset) -> set both LIMIT and OFFSET

This change *breaks the API*
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 4741c5f on cdevienne:limit-offset into 80fdf52 on slicebit:master.

@cdevienne
Copy link
Contributor Author

Hi @aacanakin

I am about to merge this PR which breaks the API

Cheers

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 4741c5f on cdevienne:limit-offset into 80fdf52 on slicebit:master.

@cdevienne cdevienne merged commit f38cc16 into slicebit:master Jun 26, 2017
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

Successfully merging this pull request may close these issues.

2 participants