class Jennifer::QueryBuilder::OrderExpression
Defined in:
jennifer/query_builder/order_expression.crConstructors
Instance Method Summary
- #==(other : OrderExpression)
- #alias_tables(aliases)
-
#as_sql(sql_generator)
Converts node to SQL using sql_generator SQLGenerator.
- #change_table(old_name, new_name)
-
#clone
Returns a copy of
self
with all instance variables cloned. - #criteria : Criteria
- #direction : Direction
-
#direction=(value : Symbol | String)
Specify sorting direction by
String
orSymbol
analogue. - #eql?(other : OrderExpression)
-
#filterable?
Returns whether node has an argument to be added to SQL statement arguments.
- #null_position : NullPosition
- #nulls_first
- #nulls_last
- #nulls_unordered
-
#reverse
Reverse sorting order.
- #set_relation(table, name)
-
#sql_args : Array(DBAny)
Returns array of SQL query arguments.
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
Instance Method Detail
def as_sql(sql_generator)
#
Description copied from module Jennifer::QueryBuilder::Statement
Converts node to SQL using sql_generator SQLGenerator.
def filterable?
#
Description copied from module Jennifer::QueryBuilder::Statement
Returns whether node has an argument to be added to SQL statement arguments.
Description copied from module Jennifer::QueryBuilder::Statement
Returns array of SQL query arguments.