neo4j-rstats / neo4r

A Modern and Flexible Neo4J Driver
https://neo4j-rstats.github.io/user-guide/
Other
106 stars 29 forks source link

[Implementation] Test if connection is possible with neo4j #19

Open statnmap opened 6 years ago

statnmap commented 6 years ago

If the user or password are false, the connection with neo4r::neo4j_api$new should not work.
Add a test on con$ping() == 200 for instance, otherwise return an error.

RMHogervorst commented 6 years ago

but maybe translate the error numbers? (So you know it if the connection, authentification or server is at fault)

ColinFay commented 6 years ago

It seems we can wrap something around : https://neo4j.com/docs/developer-manual/current/reference/status-codes/, so that it is clearly transalted to the user