Class: Grumlin::DummyTransaction

Inherits:
Transaction show all
Defined in:
lib/grumlin/dummy_transaction.rb

Constant Summary

Constants inherited from Transaction

Transaction::COMMIT, Transaction::ROLLBACK

Instance Attribute Summary collapse

Attributes inherited from Transaction

#pool, #session_id

Instance Method Summary collapse

Methods inherited from Transaction

#begin, #commit, #rollback

Constructor Details

#initialize(traversal_start_class, middlewares:, pool:) ⇒ DummyTransaction

Returns a new instance of DummyTransaction.



6
7
8
9
10
11
12
13
# File 'lib/grumlin/dummy_transaction.rb', line 6

def initialize(traversal_start_class, middlewares:, pool:)
  super
  @session_id = nil

  Console.info(self) do
    "#{Grumlin.config.provider} does not support transactions. commit and rollback are ignored, data will be saved"
  end
end

Instance Attribute Details

#uuidObject (readonly)

Returns the value of attribute uuid.



4
5
6
# File 'lib/grumlin/dummy_transaction.rb', line 4

def uuid
  @uuid
end