Class: Pacer::Neo4j2::BlueprintsHaGraph
- Inherits:
-
Neo4j2HaGraph
- Object
- Neo4j2HaGraph
- Pacer::Neo4j2::BlueprintsHaGraph
- Includes:
- TxDepth
- Defined in:
- lib/pacer-neo4j2/blueprints_graph.rb
Instance Attribute Summary
Attributes included from TxDepth
#allow_auto_read_tx, #allow_auto_tx
Instance Method Summary collapse
Methods included from TxDepth
Instance Method Details
#autoStartTransaction(for_write) ⇒ Object
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/pacer-neo4j2/blueprints_graph.rb', line 54 def autoStartTransaction(for_write) if for_write if allow_auto_tx or tx_depth != 0 super else raise Pacer::TransactionError, "Can't mutate the graph outside a transaction block" end else if allow_auto_read_tx or read_tx_depth != 0 super else raise Pacer::TransactionError, "Can't read the graph outside a transaction or read_transaction block" end end end |