Module: Arel::Nodes::Function::FunctionExtension
- Included in:
- Arel::Nodes::Function
- Defined in:
- lib/arel/extensions/function.rb
Instance Attribute Summary collapse
-
#filter ⇒ Object
Returns the value of attribute filter.
-
#orders ⇒ Object
postgres only: www.postgresql.org/docs/9.5/functions-aggregate.html.
-
#schema_name ⇒ Object
postgres only: www.postgresql.org/docs/10/ddl-schemas.html.
-
#variardic ⇒ Object
Returns the value of attribute variardic.
-
#within_group ⇒ Object
Returns the value of attribute within_group.
Instance Method Summary collapse
Instance Attribute Details
#filter ⇒ Object
Returns the value of attribute filter.
10 11 12 |
# File 'lib/arel/extensions/function.rb', line 10 def filter @filter end |
#orders ⇒ Object
postgres only: www.postgresql.org/docs/9.5/functions-aggregate.html
9 10 11 |
# File 'lib/arel/extensions/function.rb', line 9 def orders @orders end |
#schema_name ⇒ Object
postgres only: www.postgresql.org/docs/10/ddl-schemas.html
14 15 16 |
# File 'lib/arel/extensions/function.rb', line 14 def schema_name @schema_name end |
#variardic ⇒ Object
Returns the value of attribute variardic.
12 13 14 |
# File 'lib/arel/extensions/function.rb', line 12 def variardic @variardic end |
#within_group ⇒ Object
Returns the value of attribute within_group.
11 12 13 |
# File 'lib/arel/extensions/function.rb', line 11 def within_group @within_group end |
Instance Method Details
#initialize(expr, aliaz = nil) ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/arel/extensions/function.rb', line 16 def initialize(expr, aliaz = nil) super @expressions = expr @alias = aliaz && SqlLiteral.new(aliaz) @distinct = false @orders = [] end |