struct
Interro::QueryBuilder::Subquery
- Interro::QueryBuilder::Subquery
- Struct
- Value
- Object
Defined in:
query_builder.crConstructors
Instance Method Summary
-
#in_expression(column : String) : QueryExpression
This subquery as the right-hand side of an IN, e.g.
- #relation : String
- #select_clause : String
-
#to_sql(io : IO) : Nil
Renders the subquery on its own, numbering arguments from
$1. -
#to_sql
Renders the subquery on its own, numbering arguments from
$1. - #where_clause : QueryExpression | Nil
Constructor Detail
def self.new(select select_clause : String, from relation : String, where where_clause : Interro::QueryExpression | Nil)
#
Instance Method Detail
def in_expression(column : String) : QueryExpression
#
This subquery as the right-hand side of an IN, e.g. id IN (SELECT ...).