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

Add foreign key support #21

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

icedtoast
Copy link
Contributor

Based on #17 this allows foreign keys and hierarchical uris.

Add support for foreign keys on android versions which support it, as
well as adding support for heirarchical urls so that you can have paths
like: /posts/1/comments which refers to all the comments for the post
with id 1.

Support the getType() content provider method and use the UriMatcher
instead to determine which table, mime type and whether it is a single
row lookup instead of getPathSegment(). This is more flexible and allows
the provider to stop trusting the uris provided by clients.
Add support for foreign keys on android versions which support it, as
well as adding support for heirarchical urls so that you can have paths
like: /posts/1/comments which refers to all the comments for the post
with id 1.
@bhurling
Copy link
Contributor

This is a great change. I already thought about a feature like this. At first sight your changes seem reasonable. But I need some more time to test it. Thank you very much for your contributions.

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