module Buildable
Overview
Handles building the final SQL query.
Defined in:
query/buildable.crInstance Method Summary
-
#build
Builds the final query expression object.
-
#to_sql(gen = @schema.gen)
Converts the query into an SQL string and its corresponding parameters.
Instance Method Detail
def build
#
Builds the final query expression object.
Example Building the final query expression object
query.build
=> #<Expression::Query:0x00007f8000000000>
def to_sql(gen = @schema.gen)
#
Converts the query into an SQL string and its corresponding parameters.
Example Converting the query to an SQL string
query.to_sql
=> ["SELECT * FROM users", []]