Skip to content

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

@draveness

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

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