Sha256: ed3ef40ecb69c3ec64e9b6c68c29e68f7e6dcf23af90a6547e56e3a518d277a7

Contents?: true

Size: 518 Bytes

Versions: 1

Compression:

Stored size: 518 Bytes

Contents

# frozen_string_literal: true

module ActiveRecordDataLoader
  class Configuration
    attr_accessor :default_batch_size, :default_row_count, :logger, :statement_timeout

    def initialize(
      default_batch_size: 100_000,
      default_row_count: 1,
      logger: Logger.new(STDOUT, level: :info),
      statement_timeout: "2min"
    )
      @default_batch_size = default_batch_size
      @default_row_count = default_row_count
      @logger = logger
      @statement_timeout = statement_timeout
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_record_data_loader-0.1.2 lib/active_record_data_loader/configuration.rb