module Buildable

Overview

Handles building the final SQL query.

Defined in:

query/buildable.cr

Instance Method Summary

Instance Method Detail

def build #

Builds the final query expression object.

Example Building the final query expression object

query.build
=> #<Expression::Query:0x00007f8000000000>

[View source]
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", []]

[View source]