Sha256: a8233add6e08a7d97e626930f36138d4d686ea2d4f8e064b17bca729bd631942

Contents?: true

Size: 544 Bytes

Versions: 1

Compression:

Stored size: 544 Bytes

Contents

# frozen_string_literal: true

module Grumlin
  class DummyTransaction < Transaction
    attr_reader :uuid

    include Console

    def initialize(traversal_start_class, 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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
grumlin-0.22.5 lib/grumlin/dummy_transaction.rb