How to embed ArangoDB in a desktop application

前端 未结 2 2282
忘了有多久
忘了有多久 2021-02-20 17:39

I would like to embed a graph database in my application (shipping for windows, linux & MAC). I narrowed the search down to ArangoDB & OrientDB. I was able to get embedd

2条回答
  •  暖寄归人
    2021-02-20 18:36

    If you're using NodeJS (which I have to assume as you don't mention what programming language you're using) as your platform you can use Electron (https://electron.atom.io) and use the ArangoJS (http://npmjs.com/package/arangojs) Driver, if an ORM is necessary I'd recommend using (http://npmjs.com/package/caminte) which has built-in support for ArangoDB, although the documentation being to a poor standard, it should be suffice with some programming knowledge.

    OFT: Electron lets you create cross platform Desktop applications in pure HTML, JS and CSS. You can also use Cordova if you're targeting the mobile platform.

    You could also use Foxx to perform some of your application logic (this is down to your personal preference) or also create an API platform (with for example Restify).

    Most of database systems are written in C++ but that does not mean can only access them via C++, additional drivers are provided for the popular languages. If you use a specific language then update the question so we can help further.

    You might also want to read this: https://www.arangodb.com/2018/02/nosql-performance-benchmark-2018-mongodb-postgresql-orientdb-neo4j-arangodb/ as to why ArangoDB would be a better choice for you.


    Edit

    Due to my limited experience in C++ I can only provide some references which I've saved earlier, but I'm sure they'll be of use to you.

    For C++ the driver you should be using is:

    https://www.arangodb.com/2017/11/introduction-fuerte-arangodb-c-plus-plus-driver/

    An example of the usage of the driver:

    https://www.arangodb.com/wp-content/uploads/2017/10/C-Example-Source-Code-File.cc

    A simple example / tutorial on how to use graphing in ArangoDB:

    https://docs.arangodb.com/3.2/Manual/Graphs/

    A free course by Arango on Graphing:

    https://www.arangodb.com/arangodb-graph-course/

    Hope they help!

提交回复
热议问题