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

Support SELECT "ORDER BY" clause #107

Closed
tabdulradi opened this issue Oct 23, 2016 · 1 comment
Closed

Support SELECT "ORDER BY" clause #107

tabdulradi opened this issue Oct 23, 2016 · 1 comment
Assignees
Milestone

Comments

@tabdulradi
Copy link
Member

Start with the parser, 99% the rest is already implemented, but an integration test case under troy-macro subproject is necessary to prove it is working end to end.

@tabdulradi tabdulradi added this to the 0.5 milestone Oct 23, 2016
@tabdulradi
Copy link
Member Author

tabdulradi commented Oct 23, 2016

Example of an integration test

val listByAuthor = withSchema { (authorId: UUID) =>
      cql"""
         SELECT post_id, author_name, reviewer_name, post_title, post_rating, post_tags
         FROM test.posts
         WHERE author_id = $authorId
         ORDER BY post_id DESC ;
       """
        .prepared
        .executeAsync
        .as(Post)
  }

OmniaGM added a commit to OmniaGM/troy that referenced this issue Oct 30, 2016
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

2 participants