class Neo4j::Core::CypherSession::Transactions::Bolt
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
Neo4j::Transaction::Base::new
# File lib/neo4j/core/cypher_session/transactions/bolt.rb 8 def initialize(*args) 9 super 10 11 tx_query('BEGIN') if root? 12 end
Public Instance Methods
commit()
click to toggle source
# File lib/neo4j/core/cypher_session/transactions/bolt.rb 14 def commit 15 tx_query('COMMIT') if root? 16 end
delete()
click to toggle source
# File lib/neo4j/core/cypher_session/transactions/bolt.rb 18 def delete 19 tx_query('ROLLBACK') 20 end
started?()
click to toggle source
# File lib/neo4j/core/cypher_session/transactions/bolt.rb 22 def started? 23 true 24 end
Private Instance Methods
tx_query(cypher)
click to toggle source
# File lib/neo4j/core/cypher_session/transactions/bolt.rb 28 def tx_query(cypher) 29 query = Adaptors::Base::Query.new(cypher, {}, cypher) 30 adaptor.send(:query_set, self, [query], skip_instrumentation: true) 31 end