Skip to content

Expose transactional Cypher feature #111

Open
@aseemk

Description

@aseemk

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions