Sha256: ebeb37fb2681ad85710038cb5c965353cb298d4d134dbd93344f6b9daa62513b
Contents?: true
Size: 676 Bytes
Versions: 15
Compression:
Stored size: 676 Bytes
Contents
module Neo4j::Embedded class EmbeddedTransaction attr_reader :root_tx include Neo4j::Transaction::Instance def initialize(root_tx) @root_tx = root_tx register_instance end def acquire_read_lock(entity) @root_tx.acquire_read_lock(entity) end def acquire_write_lock(entity) @root_tx.acquire_write_lock(entity) end def inspect "EmbeddedTransaction [nested: #{@pushed_nested} failed?: #{failure?} active: #{Neo4j::Transaction.current == self}]" end def _delete_tx @root_tx.failure @root_tx.close end def _commit_tx @root_tx.success @root_tx.close end end end
Version data entries
15 entries across 15 versions & 1 rubygems