Skip to content

Add foreign key support#21

Open
icedtoast wants to merge 3 commits intoTriple-T:masterfrom
devinesystems:add-foreign-key-support
Open

Add foreign key support#21
icedtoast wants to merge 3 commits intoTriple-T:masterfrom
devinesystems:add-foreign-key-support

Conversation

@icedtoast
Copy link
Copy Markdown
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
Copy Markdown
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