Sha256: a9f056ff6e89853877eb3dfff914fc512f03a6f029fd493a9a50e711272b3b82

Contents?: true

Size: 399 Bytes

Versions: 12

Compression:

Stored size: 399 Bytes

Contents

# frozen_string_literal: true

module ROM
  module SQL
    # @api private
    class ForeignKey
      extend Initializer
      include Dry::Equalizer(:attributes, :parent_table, :options)

      DEFAULT_PARENT_KEYS = %i[id].freeze

      param :attributes

      param :parent_table, type: Dry::Types['strict.symbol']

      option :parent_keys, default: -> { DEFAULT_PARENT_KEYS }
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rom-sql-3.6.4 lib/rom/sql/foreign_key.rb
rom-sql-3.6.3 lib/rom/sql/foreign_key.rb
rom-sql-3.6.2 lib/rom/sql/foreign_key.rb
rom-sql-3.6.1 lib/rom/sql/foreign_key.rb
rom-sql-3.6.0 lib/rom/sql/foreign_key.rb
rom-sql-3.5.0 lib/rom/sql/foreign_key.rb
rom-sql-3.4.0 lib/rom/sql/foreign_key.rb
rom-sql-3.3.3 lib/rom/sql/foreign_key.rb
rom-sql-3.3.2 lib/rom/sql/foreign_key.rb
rom-sql-3.3.1 lib/rom/sql/foreign_key.rb
rom-sql-3.3.0 lib/rom/sql/foreign_key.rb
rom-sql-3.2.0 lib/rom/sql/foreign_key.rb