Page 1 of 1

Can LiveCode connect to Neo4j graph DBs?

Posted: Mon Jan 19, 2015 11:32 pm
by thej
I'm considering learning LiveCode as a means to create apps that connect to Neo4j graph databases (which I'm also learning :-)
Does anyone know if that is possible or what would be required to do so.

Thanks

Re: Can LiveCode connect to Neo4j graph DBs?

Posted: Thu Jan 22, 2015 5:11 pm
by MaxV
You can use the neo4j-shell utility (under windows is Neo4jShell.bat), it's included in every neo4j installation.
Use livecode to create a series of commands, then puts all commands in a file, for example mycommands.cql.
then you can use:

Code: Select all

put shell("neo4j-shell -file mycommands.cql") into myresult
Myresult variable will contain any output of the launched commands. Remember to indicate the correct path to neo4j-shell (example: /home/max/downloads/neo4j/bin/neo4j-shell -file mycommands.cql )

For more information: http://neo4j.com/docs/2.1.6/shell-starting.html