Class: Pacer::Neo4j2::BlueprintsGraph
- Inherits:
-
Neo4j2Graph
- Object
- Neo4j2Graph
- Pacer::Neo4j2::BlueprintsGraph
- 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
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/pacer-neo4j2/blueprints_graph.rb', line 33 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 |