简体   繁体   中英

How do I programmatically validate a cypher query in Neo4j?

有没有办法使用 Java API 以编程方式验证 Neo4J Cypher 查询?

Based upon this thread, the compilation of cypher is handled by scala:

http://grokbase.com/t/gg/neo4j/14amay53ch/cypher-grammar-file

The link on that thread is out of date, so heres the latest on github:

https://github.com/neo4j/neo4j/blob/3.1/community/cypher/cypher-compiler-3.1/src/main/scala/org/neo4j/cypher/internal/compiler/v3_1/CypherCompiler.scala

Beyond that you're on your own - @stdob comment about using EXPLAIN is still your best bet in my opinion (and should be submitted as an answer)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM