Sha256: 7365db0cb28ad2f4113dc8726bdb226d0f22270bf3cd52c2d41e630414156f3a

Contents?: true

Size: 439 Bytes

Versions: 9

Compression:

Stored size: 439 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

  def commit
    nil
  end

  def rollback
    nil
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
grumlin-1.0.3.beta1 lib/grumlin/dummy_transaction.rb
grumlin-1.0.2 lib/grumlin/dummy_transaction.rb
grumlin-1.0.1 lib/grumlin/dummy_transaction.rb
grumlin-1.0.0 lib/grumlin/dummy_transaction.rb
grumlin-1.0.0.rc7 lib/grumlin/dummy_transaction.rb
grumlin-1.0.0.rc6 lib/grumlin/dummy_transaction.rb
grumlin-1.0.0.rc5 lib/grumlin/dummy_transaction.rb
grumlin-1.0.0.rc4 lib/grumlin/dummy_transaction.rb
grumlin-1.0.0.rc3 lib/grumlin/dummy_transaction.rb