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

Intelligent Update queries #92

Open
pelletencate opened this issue May 15, 2018 · 0 comments
Open

Intelligent Update queries #92

pelletencate opened this issue May 15, 2018 · 0 comments

Comments

@pelletencate
Copy link

pelletencate commented May 15, 2018

It would be great to have the DSL available in UPDATE queries, so I can assign SQL values to fields.

Something like:

# Inherit all venue's cities and countries from their owners
Venue.joining { owner }.updating { { city: owner.city, country: owner.country } }

# or (less "nice" alternative IMO)
Venue.joining { owner }.updating { [city(owner.city), country(owner.country) }
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

No branches or pull requests

1 participant