Sha256: 496f1ec16e9249d9d86fd74c97f515f3a83ccbb0853b0ad5a6c9904e277461ec

Contents?: true

Size: 222 Bytes

Versions: 3

Compression:

Stored size: 222 Bytes

Contents

module ETL #:nodoc:
  module Generator #:nodoc:
    # Surrogate key generator.
    class SurrogateKeyGenerator < Generator
      def next
        @surrogate_key ||= 0
        @surrogate_key += 1
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
activewarehouse-etl-0.5.0 lib/etl/generator/surrogate_key_generator.rb
activewarehouse-etl-0.5.1 lib/etl/generator/surrogate_key_generator.rb
activewarehouse-etl-0.5.2 lib/etl/generator/surrogate_key_generator.rb