Class: Sequel::SQL::WindowFunction
- Inherits:
-
GenericExpression
- Object
- Expression
- GenericExpression
- Sequel::SQL::WindowFunction
- Defined in:
- lib/sequel/sql.rb
Overview
A WindowFunction
is a grouping of a Function
with a Window
over which it operates.
Instance Attribute Summary collapse
-
#function ⇒ Object
readonly
The function to use, should be an
SQL::Function
. -
#window ⇒ Object
readonly
The window to use, should be an
SQL::Window
.
Instance Method Summary collapse
-
#initialize(function, window) ⇒ WindowFunction
constructor
Set the function and window.
Methods included from SubscriptMethods
Methods included from StringMethods
Methods included from OrderMethods
Methods included from NumericMethods
Methods included from ComplexExpressionMethods
#extract, #sql_boolean, #sql_number, #sql_string
Methods included from CastMethods
#cast, #cast_numeric, #cast_string
Methods included from BooleanMethods
Methods included from AliasMethods
Methods inherited from Expression
#==, attr_reader, comparison_attrs, #eql?, #hash, #inspect, #lit, #sql_literal
Constructor Details
#initialize(function, window) ⇒ WindowFunction
Set the function and window.
1162 1163 1164 |
# File 'lib/sequel/sql.rb', line 1162 def initialize(function, window) @function, @window = function, window end |
Instance Attribute Details
#function ⇒ Object (readonly)
The function to use, should be an SQL::Function
.
1156 1157 1158 |
# File 'lib/sequel/sql.rb', line 1156 def function @function end |
#window ⇒ Object (readonly)
The window to use, should be an SQL::Window
.
1159 1160 1161 |
# File 'lib/sequel/sql.rb', line 1159 def window @window end |