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 associations #1

Closed
seancribbs opened this issue Feb 5, 2010 · 7 comments
Closed

Add associations #1

seancribbs opened this issue Feb 5, 2010 · 7 comments
Labels

Comments

@seancribbs
Copy link
Contributor

Types:

  • Simple links
  • Embedded
  • Complex/custom links (?)
@MarkBennett
Copy link

How would you imagine this working? Would you use links between the associated objects?

@seancribbs
Copy link
Contributor Author

Yes, they will be links, in both directions.

@bbhoss
Copy link

bbhoss commented Mar 14, 2010

I finished the proxy stuff and sent you a pull request, I might add some basic stuff later.

@Tuxie
Copy link

Tuxie commented Mar 15, 2010

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?

@bbhoss
Copy link

bbhoss commented Mar 15, 2010

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.

@seancribbs
Copy link
Contributor Author

To be clear, there are 2 types and 2 cardinalities of relationships possible, making 4 total classes of relationships:

  • One, embedded
  • Many, embedded
  • One, linked
  • Many, linked

There are also some slight variations on these, like "polymorphic" relationships, but the difference is minor.

@seancribbs
Copy link
Contributor Author

There are other things to be added to associations, but the basics are there. Let's open more detailed issues for those features.

emancu referenced this issue in FormulaMonks/ripple Jul 6, 2013
…ng_key

Support associations with foreign key
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants