struct Interro::QueryBuilder::Subquery

Defined in:

query_builder.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(select select_clause : String, from relation : String, where where_clause : Interro::QueryExpression | Nil) #

[View source]

Instance Method Detail

def in_expression(column : String) : QueryExpression #

This subquery as the right-hand side of an IN, e.g. id IN (SELECT ...).


[View source]
def relation : String #

[View source]
def select_clause : String #

[View source]
def to_sql(io : IO) : Nil #

Renders the subquery on its own, numbering arguments from $1.


[View source]
def to_sql #

Renders the subquery on its own, numbering arguments from $1.


[View source]
def where_clause : QueryExpression | Nil #

[View source]