Question

Neo4j community 2.0.

How can I undo the last successfully executed neo4j cypher query (made big changes by error).

And generally is there a chance to rollback to a particular state (at least what shown on the interface)?

Though, seems basic action, cannot find it. Thank you in advance.

Était-ce utile?

La solution

If you run your cypher statements in a transaction then you can always rollback instead of committing.

  • in the Neo4j-Shell or old Web-UI with BEGIN .... COMMIT around your queries use ROLLBACK
  • with the new transactional http endpoint
  • with programmatic use, e.g. via the JAVA API and transactional boundaries
  • with any of the drivers that support transactions with Neo4j: http://neo4j.org/drivers

Autres conseils

Well, when a transaction is committed, there is really no clean way of rolling it back, except to write a new transaction that negates the older one. Isn't that possible?

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top