Sha256: ed90bd6a7d09127e241fad8df0f1a83fe2c63fc1f263280fcb95912962ccfb06

Contents?: true

Size: 490 Bytes

Versions: 6

Compression:

Stored size: 490 Bytes

Contents

# frozen_string_literal: true

module Sequel
  module Extensions
    module Batches
      MissingPKError = Class.new(StandardError)
      NullPKError = Class.new(StandardError)
      InvalidPKError = Class.new(StandardError)

      def in_batches(**options, &block)
        Sequel::Extensions::Batches::Yielder.new(ds: self, **options).call(&block)
      end
    end
  end
end

::Sequel::Dataset.register_extension(:batches, Sequel::Extensions::Batches)

require_relative "batches/yielder"

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sequel-batches-2.0.2 lib/sequel/extensions/batches.rb
sequel-batches-2.0.1 lib/sequel/extensions/batches.rb
sequel-batches-2.0.0 lib/sequel/extensions/batches.rb
sequel-batches-1.1.0 lib/sequel/extensions/batches.rb
sequel-batches-1.0.1 lib/sequel/extensions/batches.rb
sequel-batches-1.0.0 lib/sequel/extensions/batches.rb