neoxygen / neo4j-neoclient

Simple PHP HttpClient for the Neo4j ReST API with Multi DB Support
MIT License
121 stars 138 forks source link

Prepared transaction #28

Closed ikwattro closed 9 years ago

ikwattro commented 9 years ago

This add the possibility to prepare a transaction with multiple statements. This fixes issue #26 .

$tx = $client->prepareTransaction()
   ->pushQuery('MATCH (n) RETURN count(n)
   ->pushQuery('CREATE (n)')
   ->commit();

print_r($tx->getResult());