cleishm / libcypher-parser

Cypher Parser Library
Apache License 2.0
149 stars 39 forks source link

Neo4j 4 database management commands unimplemented #39

Open johannessen opened 3 years ago

johannessen commented 3 years ago

Neo4j 4 offers new syntax for database management that I suppose libcypher-parser doesn’t know about yet.

Reproduce

Running libcypher-parser 0.6.2 via @majensen’s fork majensen/libneo4j-client@7bd6dfd7f948bf390a0f17d00de4f82014405b58:

neo4j> :status
Connected to 'neo4j://neo4j@localhost:7687' (insecure) [Neo4j/4.2.1]
neo4j> :dbname system
db set
neo4j> SHOW DEFAULT DATABASE;

Expected

"name","address","role","requestedStatus","currentStatus","error"
"neo4j","localhost:7687","standalone","online","online",""

Actual

<interactive>:1:2: error: Invalid input 'H': expected 't/T' or 'e/E'
SHOW DEFAULT DATABASE
 ▲