Sha256: b4859404bdccf079d427879ff497c793b7c1f132d7044ce5ff73b5376de7d228

Contents?: true

Size: 433 Bytes

Versions: 4

Compression:

Stored size: 433 Bytes

Contents

# frozen_string_literal: true

class Grumlin::DummyTransaction < Grumlin::Transaction
  attr_reader :uuid

  include Console

  def initialize(traversal_start_class, middlewares:, pool:)
    super
    @session_id = nil

    logger.info(self) do
      "#{Grumlin.config.provider} does not support transactions. commit and rollback are ignored, data will be saved"
    end
  end

  private

  def finalize(*)
    @pool.close
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
grumlin-1.2.0 lib/grumlin/dummy_transaction.rb
grumlin-1.1.0 lib/grumlin/dummy_transaction.rb
grumlin-1.0.4 lib/grumlin/dummy_transaction.rb
grumlin-1.0.3 lib/grumlin/dummy_transaction.rb