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 Postgres::HStoreOpMethods
Methods included from Postgres::RangeOpMethods
Methods included from Postgres::ArrayOpMethods
Methods included from Postgres::JSONOpMethods
Methods included from Postgres::PGRowOp::ExpressionMethods
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, #eql?, #hash, inherited, #inspect, #lit, #sql_literal
Constructor Details
#initialize(function, window) ⇒ WindowFunction
Set the function and window.
1717 1718 1719 |
# File 'lib/sequel/sql.rb', line 1717 def initialize(function, window) @function, @window = function, window end |
Instance Attribute Details
#function ⇒ Object (readonly)
The function to use, should be an SQL::Function
.
1711 1712 1713 |
# File 'lib/sequel/sql.rb', line 1711 def function @function end |
#window ⇒ Object (readonly)
The window to use, should be an SQL::Window
.
1714 1715 1716 |
# File 'lib/sequel/sql.rb', line 1714 def window @window end |