Class: Sequel::SQL::WindowFunction

Inherits:
Expression show all
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

Instance Method Summary collapse

Methods inherited from Expression

#lit

Constructor Details

#initialize(function, window) ⇒ WindowFunction

Set the function and window.



899
900
901
# File 'lib/sequel/sql.rb', line 899

def initialize(function, window)
  @function, @window = function, window
end

Instance Attribute Details

#functionObject (readonly)

The function to use, should be an SQL::Function.



893
894
895
# File 'lib/sequel/sql.rb', line 893

def function
  @function
end

#windowObject (readonly)

The window to use, should be an SQL::Window.



896
897
898
# File 'lib/sequel/sql.rb', line 896

def window
  @window
end