Sha256: b6a37d9e144212921a030fc8958a0d83f4d84648ba0666ba48a7239b9ac23611

Contents?: true

Size: 480 Bytes

Versions: 1

Compression:

Stored size: 480 Bytes

Contents

module Sqlserver
  module Sequence
    class Configuration
      # The next value strategy is used when generating the next sequence value.
      # Defaults to {Sqlserver::Sequence::Strategies::NextValueFor}.
      attr_accessor :next_value_strategy
    end

    def self.configuration
      @configuration ||= Configuration.new
    end

    def self.configuration=(config)
      @configuration = config
    end

    def self.configure
      yield configuration
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sqlserver-sequence-0.3.0 lib/sqlserver/sequence/configuration.rb