Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 999 Bytes

README.md

File metadata and controls

40 lines (26 loc) · 999 Bytes

neo4j-eiffel-driver

Neo4j Driver for Eiffel

Tested with neo4j database version 4.1.3 and ISE Eiffel Studio version 19.05 and 20.11. Both on Windows 10 and Ubuntu 20.04.1 LTS

2023-03-15. Now also tested with ISE Eiffel Studio 22.05 on both Windows 10 and Ubuntu 18.04.6 LTS.

This implementation is not complete and it is based on the HTTP API which does support Community Edition and Enterprise Edition of neo4j but not AuraDB.

Example

class APPLICATION_NEO4J

inherit ARGUMENTS_32

create make

feature {NONE} -- Initialization

make
		-- Run application.
		local
			db : NEO4J_GRAPHDATABASE
			result_string_from_db : STRING
	do
		create db.make("http://localhost:7474")
		db.set_user_name ("neo4j")
		db.set_pass ("password")
		result_string_from_db := db.send_command_to_database ("{  %"statements%" : [ {    %"statement%" : %"MERGE (n:node {node_name: 'NodeName' } ) RETURN id(n)%"  } ]}")

		print ("Respons from neo4j database %N" + result_string_from_db)
	end

end