nicolewhite/RNeo4j

Escape characters

sdoyen opened this issue · 2 comments

Currently the package does not offer any automated way to escape Neo4j special characters in strings. This is particularly an issue when trying to batch import large data frames containing several character variables.

Perhaps a function similar to dbEscapeStrings() in RMySQL would bring an effective way to deal with this (see here: https://cran.r-project.org/web/packages/RMySQL/RMySQL.pdf)?

Thanks

Hey, I'm not following the example in the docs for dbEscapeStrings. Can you show an example of what you want to achieve?

Thanks for the reply.

This is one of the scenario where special characters can create the issue:

node = createNode(graph, "label", id = 1, proprety_1 = "This string needs \003escaping")