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 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, #lit, #sql_literal
Constructor Details
#initialize(function, window) ⇒ WindowFunction
Set the function and window.
996 997 998 |
# File 'lib/sequel/sql.rb', line 996 def initialize(function, window) @function, @window = function, window end |
Instance Attribute Details
#function ⇒ Object (readonly)
The function to use, should be an SQL::Function.
990 991 992 |
# File 'lib/sequel/sql.rb', line 990 def function @function end |
#window ⇒ Object (readonly)
The window to use, should be an SQL::Window.
993 994 995 |
# File 'lib/sequel/sql.rb', line 993 def window @window end |