Sha256: 57bc0c770bf007f5f6e5e95de0fd4a314a6df37df4583b2ba6b4132631adf758
Contents?: true
Size: 515 Bytes
Versions: 11
Compression:
Stored size: 515 Bytes
Contents
# minimal class to keep schema and sequence name separate module PgSync class Sequence attr_reader :schema, :name, :column def initialize(schema, name, column:) @schema = schema @name = name @column = column end def full_name "#{schema}.#{name}" end def eql?(other) other.schema == schema && other.name == name end # override hash when overriding eql? def hash [schema, name].hash end def to_s full_name end end end
Version data entries
11 entries across 11 versions & 1 rubygems