class Jennifer::QueryBuilder::OrderExpression

Defined in:

jennifer/query_builder/order_expression.cr

Constructors

Instance Method Summary

Instance methods inherited from class Jennifer::QueryBuilder::SQLNode

alias_tables(aliases) alias_tables, as_sql as_sql, change_table(old_name, new_name) change_table, eql?(other) eql?, set_relation(table, name) set_relation, to_condition to_condition

Instance methods inherited from module Jennifer::QueryBuilder::Statement

as_sql(sql_generator) as_sql, filterable? filterable?, sql_args : Array(DBAny) sql_args

Constructor Detail

def self.new(criteria : Criteria, direction, null_position = NullPosition::NONE) #

[View source]

Instance Method Detail

def ==(other : OrderExpression) #

[View source]
def alias_tables(aliases) #

[View source]
def as_sql(sql_generator) #
Description copied from module Jennifer::QueryBuilder::Statement

Converts node to SQL using sql_generator SQLGenerator.


[View source]
def change_table(old_name, new_name) #

[View source]
def clone #

Returns a copy of self with all instance variables cloned.


[View source]
def criteria : Criteria #

[View source]
def direction : Direction #

[View source]
def direction=(value : Symbol | String) #

Specify sorting direction by String or Symbol analogue.


[View source]
def eql?(other : OrderExpression) #

[View source]
def filterable? #
Description copied from module Jennifer::QueryBuilder::Statement

Returns whether node has an argument to be added to SQL statement arguments.


[View source]
def null_position : NullPosition #

[View source]
def nulls_first #

[View source]
def nulls_last #

[View source]
def nulls_unordered #

[View source]
def reverse #

Reverse sorting order.

null position isn't affected.


[View source]
def set_relation(table, name) #

[View source]
def sql_args : Array(DBAny) #
Description copied from module Jennifer::QueryBuilder::Statement

Returns array of SQL query arguments.


[View source]