Sha256: 153d1e9c5d57936179db77608edf356e0238c25d0553b39e015614de6a31a34a

Contents?: true

Size: 561 Bytes

Versions: 5

Compression:

Stored size: 561 Bytes

Contents

# frozen_string_literal: true

module Grumlin
  class DummyTransaction < Transaction
    attr_reader :uuid

    include Console

    def initialize(traversal_start_class, pool: Grumlin.default_pool) # 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
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
grumlin-0.22.4 lib/grumlin/dummy_transaction.rb
grumlin-0.22.3 lib/grumlin/dummy_transaction.rb
grumlin-0.22.2 lib/grumlin/dummy_transaction.rb
grumlin-0.22.1 lib/grumlin/dummy_transaction.rb
grumlin-0.22.0 lib/grumlin/dummy_transaction.rb