struct

Interro::QueryBuilder::Subquery

Inherits Struct < Value < Object

Constructors

new(select select_clause : String, from relation : String, where where_clause : Interro::QueryExpression | Nil)
Source

Instance methods

in_expression(column : String) : QueryExpression

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

Source
relation
Source
select_clause
Source
to_sql(io : IO) : Nil

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

Source
to_sql

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

Source
where_clause
Source