Skip to content

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

Description

@draveness

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions