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

Support schema wide renaming strategies #13

Closed
snusnu opened this issue May 16, 2014 · 0 comments
Closed

Support schema wide renaming strategies #13

snusnu opened this issue May 16, 2014 · 0 comments

Comments

@snusnu
Copy link
Owner

snusnu commented May 16, 2014

It should be possible, given a set of base relation (definitions) plus foreign keys, to apply an injected strategy for renaming relation attributes so that they are naturally joinable.

Currently, this functionality is implemented as a DataMapper field naming strategy, but in order to support different (legacy) storage names, it makes sense that this is handled as relation rename operations.

While the scope of this issue is limited to applying the NaturalJoin renaming strategy to base relations (plus FK constraints) inferred from DataMapper::Model.descendants, it should be implemented in a way that makes it easy to integrate with #6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant