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

Use factory methods to create SQL statement instead of using raw string embedded in template code #36

Open
draveness opened this issue Sep 18, 2016 · 0 comments

Comments

@draveness
Copy link
Member

draveness commented Sep 18, 2016

For example:

select(:all).from(:articles)
-> SELECT * FROM articles;
select(:all).from(:comments).where(private_id: "\(private_id)")
-> SELECT * FROM comments WHERE private_id = "\(private_id)";
select(:all).from(:comments).where(private_id: select
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

1 participant