class Neo4j extends AutoCloseable
The 'Neo4j' class creates a connection to the Neo4j Database server.
- Alphabetic
- By Inheritance
- Neo4j
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Neo4j(uri: String, user: String, password: String)
- uri
the URI to connect with the Neo4j server
- user
the username to connect with the server
- password
the password to connect with the server
Value Members
-
def
close(): Unit
Close the connection with the Neo4j server.
Close the connection with the Neo4j server.
- Definition Classes
- Neo4j → AutoCloseable
-
def
createGraph(createStmt: String): Unit
The graph will be created in the Neo4j server.
The graph will be created in the Neo4j server.
- createStmt
the cypher query to be excuted for creating the graph in Neo4j
-
def
deleteAll: Unit
Delelte any existing graphs in Neo4j.
-
def
runQuery(query: String): Rows_lab
The query is run on the graph in Neo4j and the result is returned.
The query is run on the graph in Neo4j and the result is returned.
- query
The query to be run on the graph in Neo4j database