Description
New in Neo4j 2.0.
Usage of this API would probably look just like db.query()
does today, so that you could get back results and continue to make queries based on them, except that you'd have to explicitly begin and commit the transaction for the effects to persist. (Or for efficiency, explicitly rollback instead of letting it expire.)
How should that be implemented? E.g. a db.beginTransaction()
method that returns a Transaction
object that has query()
, commit()
, and rollback()
methods? Or have beginTransaction()
return a transaction ID, that you could optionally pass to db.query()
, db.commitTransaction()
, and db.rollbackTransaction()
? Or something different altogether?
The REST API implementation of transactional Cypher queries is different than regular Cypher, so that'll need updating too.