Members
(static) driver :string
Type:
- string
(static) isConnected :boolean
Type:
- boolean
(static) logCypherEnabled
Returns property that defines if the generated cypher must be logged on the console.
(static) logCypherEnabled
Set the property that defines if the generated cypher must be logged on the console.
Methods
(static) connect(useropt, passwordopt, hostopt, configurationopt)
Creates a neo4j connection using bolt protocol. A successful connection will create a driver object that can be accessed for OGMNeo.driver
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
user |
string |
<optional> |
neo4j | Neo4j user. |
password |
string |
<optional> |
neo4j | Neo4j password. |
host |
string |
<optional> |
localhost | Neo4j host. |
configuration |
string |
<optional> |
Optional extra configuration for neo4j driver. |
(static) disconnect()
Closes the current driver connection.
(static) session() → {object}
Returns a driver NEW session, always a new instance.
Returns:
Neo4j driver session.
- Type
- object