-
Notifications
You must be signed in to change notification settings - Fork 152
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 associations #1
Comments
How would you imagine this working? Would you use links between the associated objects? |
Yes, they will be links, in both directions. |
I finished the proxy stuff and sent you a pull request, I might add some basic stuff later. |
Will you be able to add all association types of ActiveRecord (has_one, has_many, has_many :through, belongs_to and has_and_belongs_to_many) or are some of them not possible? |
Feature parity with activerecord is not one of the goals of ripple. Riak is quite different from relational databases so we shouldn't try to use old ideas on a new product. We will add relationships/associations where it makes sense. |
To be clear, there are 2 types and 2 cardinalities of relationships possible, making 4 total classes of relationships:
There are also some slight variations on these, like "polymorphic" relationships, but the difference is minor. |
There are other things to be added to associations, but the basics are there. Let's open more detailed issues for those features. |
…ng_key Support associations with foreign key
Types:
The text was updated successfully, but these errors were encountered: