Sha256: 5c6fc202635ce3af9ea7bb0567741d8497464d9c7c12eb3101bced9111552269

Contents?: true

Size: 558 Bytes

Versions: 1

Compression:

Stored size: 558 Bytes

Contents

# frozen_string_literal: true

module Grumlin
  class DummyTransaction < 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
end

Version data entries

1 entries across 1 versions & 1 rubygems

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