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

Writing complex sql query #52

Closed
vsvankhede opened this issue Apr 21, 2016 · 2 comments
Closed

Writing complex sql query #52

vsvankhede opened this issue Apr 21, 2016 · 2 comments

Comments

@vsvankhede
Copy link

vsvankhede commented Apr 21, 2016

My android application contains some complex (normalized) database structure.
I didn't found any example which show case how one can use your library for such complex query.
Can you please provide/guide me an example for query like shown as below?

Ex:

SELECT * from Place 
LEFT JOIN Itinerary 
ON Itinerary.place_id = Place.place_id 
AND Itinerary.trip_id='domtrip001';
@vsvankhede
Copy link
Author

Updated SQL query.

@vsvankhede vsvankhede reopened this Apr 21, 2016
@SimonVT
Copy link
Owner

SimonVT commented Apr 21, 2016

@ContentUri and @InexactContentUri has a join parameter you can use for static joins.

If part of the join statement changes, annotate a method with @Join and it'll be called for every query.

@Join(path = "mypath")
public static String[] dynamicJoin() {
  return new String[] {
      "LEFT JOIN Itinerary ON ...",
  };
}

@SimonVT SimonVT closed this as completed May 19, 2016
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

No branches or pull requests

2 participants