class Fx::Trigger
@api private
Attributes
definition[R]
name[R]
Public Class Methods
new(function_row)
click to toggle source
# File lib/fx/trigger.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/trigger.rb, line 14 def ==(other) name == other.name && definition == other.definition end
to_schema()
click to toggle source
# File lib/fx/trigger.rb, line 18 def to_schema <<-SCHEMA create_trigger :#{name}, sql_definition: <<-\SQL #{definition} SQL SCHEMA end