Sha256: 61bcf1476d07c3efd4bfb2a8282b9815ce802c718884432c55d6d23467de330c

Contents?: true

Size: 525 Bytes

Versions: 2

Compression:

Stored size: 525 Bytes

Contents

# frozen_string_literal: true

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

  include Console

  def initialize(traversal_start_class, middlewares:, pool: nil) # rubocop:disable Lint/MissingSuper, Lint/UnusedMethodArgument
    @traversal_start_class = traversal_start_class

    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

2 entries across 2 versions & 1 rubygems

Version Path
grumlin-1.0.0.rc2 lib/grumlin/dummy_transaction.rb
grumlin-1.0.0.rc1 lib/grumlin/dummy_transaction.rb