Class: Sequel::SQL::Function
- Inherits:
-
GenericExpression
- Object
- Expression
- GenericExpression
- Sequel::SQL::Function
- Defined in:
- lib/sequel/sql.rb,
lib/sequel/extensions/eval_inspect.rb
Overview
Represents an SQL function call.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
The array of arguments to pass to the function (may be blank).
-
#f ⇒ Object
readonly
The SQL function to call.
Instance Method Summary collapse
-
#initialize(f, *args) ⇒ Function
constructor
Set the functions and args to the given arguments.
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(f, *args) ⇒ Function
Set the functions and args to the given arguments
1210 1211 1212 |
# File 'lib/sequel/sql.rb', line 1210 def initialize(f, *args) @f, @args = f, args end |
Instance Attribute Details
#args ⇒ Object (readonly)
The array of arguments to pass to the function (may be blank)
1207 1208 1209 |
# File 'lib/sequel/sql.rb', line 1207 def args @args end |
#f ⇒ Object (readonly)
The SQL function to call
1204 1205 1206 |
# File 'lib/sequel/sql.rb', line 1204 def f @f end |