cartodb-4.42/lib/carto/db/trigger.rb

22 lines
612 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +08:00
module Carto
module Db
class Trigger
attr_reader :database_name, :database_schema, :table_name, :trigger_name
def initialize(database_name:, database_schema:, table_name:, trigger_name:)
@database_name = database_name
@database_schema = database_schema
@table_name = table_name
@trigger_name = trigger_name
end
def ==(other)
@database_name == other.database_name &&
@database_schema == other.database_schema &&
@table_name == other.table_name &&
@trigger_name == other.trigger_name
end
end
end
end