-
Notifications
You must be signed in to change notification settings - Fork 273
Transaction
subvertallchris edited this page Oct 12, 2014
·
11 revisions
Example of how to rollback a transaction:
Neo4j::Transaction.run do |tx|
Neo4j::Node.create
Person.create
tx.fail
end
Or:
begin
tx = Neo4j::Transaction.new
# your code
rescue MyErrorClass
tx.failure
ensure
tx.close
end
When version 3.0 of this gem was released. There were limitations that prevented full transactional endpoint support with Neo4j Server. These were resolved in neo4j-core 3.0.1.
WARNING: Much of the information in this wiki is out of date. We are in the process of moving things to readthedocs
- Project Introduction
- Neo4j::ActiveNode
- Neo4j::ActiveRel
- Search and Scope
- Validation, Uniqueness, and Case Sensitivity
- Indexing VS Legacy Indexing
- Optimized Methods
- Inheritance
- Core: Nodes & Rels
- Introduction
- Persistence
- Find : Lucene
- Relationships
- Third Party Gems & extensions
- Scaffolding & Generators
- HA Cluster