Using Neo4j database from C++

南楼画角 提交于 2021-01-28 04:00:44

问题


my problem is I want to use Neo4j database from a C++ program and I read a lot, but still don't know, how can I start.

First I would like to make a connection between Neo4j and C++, and I would like to create nodes from the C++ program.

Anyone have an example code, or can somebody help, how can I start?


回答1:


There are no current C/C++ Neo4j drivers targeting Neo4j 2.x that I'm aware of. (See Stefan's answer for a C driver targeting the upcoming Neo4j 3.0 release)

However, using the transactional Cypher API endpoint you should be able to use any C++ http client / JSON parser to interact with Neo4j using Cypher.




回答2:


For the upcoming binary remoting protocol there's already a driver written in C, see http://cleishm.github.io/libneo4j-client/.

Please note that this will only work Neo4j 3.0 builds. As of today milestone 2 is the most current one. Be sure to read the release notes when working with milestones.



来源:https://stackoverflow.com/questions/35184008/using-neo4j-database-from-c

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!