class Fx::Function
@api private
Attributes
definition[R]
name[R]
Public Class Methods
new(function_row)
click to toggle source
# File lib/fx/function.rb, line 9 def initialize(function_row) @name = function_row.fetch("name") @definition = function_row.fetch("definition") end
Public Instance Methods
==(other)
click to toggle source
# File lib/fx/function.rb, line 14 def ==(other) name == other.name && definition == other.definition end
to_schema()
click to toggle source
# File lib/fx/function.rb, line 18 def to_schema <<-SCHEMA.indent(2) create_function :#{name}, sql_definition: <<-'SQL' #{definition.indent(4).rstrip} SQL SCHEMA end