class Focus::SelectExpression

Included Modules

Defined in:

focus/sql_expressions.cr

Constructors

Instance Method Summary

Instance methods inherited from module Focus::QueryExpression

table_alias : String | Nil table_alias

Instance methods inherited from module Focus::SqlExpression

accept(visitor : Focus::SqlVisitor) : Nil accept, wrap_in_parens? : Bool wrap_in_parens?

Constructor Detail

def self.new(from : Focus::QuerySourceExpression, columns : Array(Focus::BaseColumnDeclaringExpression) = [] of BaseColumnDeclaringExpression, where : Focus::ScalarExpression(Bool) | Nil = nil, group_by : Array(Focus::BaseScalarExpression) = [] of BaseScalarExpression, having : Focus::ScalarExpression(Bool) | Nil = nil, order_by : Array(Focus::OrderByExpression) = [] of OrderByExpression, is_distinct : Bool = false, limit : Int32 | Nil = nil, offset : Int32 | Nil = nil) #

[View source]

Instance Method Detail

def columns : Array(BaseColumnDeclaringExpression) #

[View source]
def copy(columns = self.columns, from = self.from, where = self.where, group_by = self.group_by, having = self.having, order_by = self.order_by, is_distinct = self.is_distinct, limit = self.limit, offset = self.offset) #

[View source]

[View source]
def group_by : Array(BaseScalarExpression) #

[View source]
def having : ScalarExpression(Bool) | Nil #

[View source]
def is_distinct : Bool #

[View source]
def limit : Int32 | Nil #

[View source]
def offset : Int32 | Nil #

[View source]
def order_by : Array(OrderByExpression) #

[View source]
def where : ScalarExpression(Bool) | Nil #

[View source]