Class Sequel::SQL::Function
In: lib/sequel/sql.rb
Parent: GenericExpression

Represents an SQL function call.

Methods

==   new  

Attributes

args  [R]  The array of arguments to pass to the function (may be blank)
f  [R]  The SQL function to call

Public Class methods

Set the attributes to the given arguments

[Source]

     # File lib/sequel/sql.rb, line 530
530:       def initialize(f, *args)
531:         @f, @args = f, args
532:       end

Public Instance methods

Functions are considered equivalent if they have the same class, function, and arguments.

[Source]

     # File lib/sequel/sql.rb, line 536
536:       def ==(x)
537:          x.class == self.class && @f == x.f && @args == x.args
538:       end

[Validate]