jadell / neo4jphp

PHP wrapper of the Neo4j REST interface
Other
533 stars 137 forks source link

Send queries with parameters #32

Closed pierredewilde closed 12 years ago

pierredewilde commented 12 years ago

Both Cypher and Gremlin plugins support parameterized queries by passing a JSON map with the script. This is much more efficient. See http://neo4j.org/forums/#nabble-td3569774|a3574235

jadell commented 12 years ago

The Cypher\Query class in Neo4jPHP handles this already. It should be fairly easy to make the Gremlin\Query class do the same.

jadell commented 12 years ago

In master.

This will get rolled into the pre-packaged PHAR when 0.0.6-beta is released. Until then, you can roll your own PHAR or use the library directly using the "From Source" instructions: http://github.com/jadell/neo4jphp/wiki/Getting-started