startGraph: Connect to the Database

Description Usage Arguments Value Examples

Description

Establish a connection to Neo4j.

Usage

1
2
startGraph(url, username = character(), password = character(),
  opts = list(), boltUri = character())

Arguments

url

A character string. The HTTP url. Optional if boltUri is specified.

username

A character string. If authentication is enabled, your username.

password

A character string. If authentication is enabled, your password.

opts

A named list. Optional HTTP settings.

boltUri

A character string. The bolt URI. Optionally enables the Bolt interface for Cypher.

Value

A graph object.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
## Not run: 
graph = startGraph() # http://localhost:7474/db/data/ by default

graph = startGraph("http://localhost:7474/db/data/",
                   username = "neo4j",
                   password = "password")

graph = startGraph("http://localhost:7474/db/data/",
                   opts = list(timeout=3))

graph = startGraph("http://localhost:7474/db/data/",
                   username = "neo4j",
                   password = "password",
                   boltUri = "neo4j://localhost:7687/")

graph = startGraph(character(), # only use the Bolt interface
                   username = "neo4j",
                   password = "password",
                   boltUri = "neo4j://localhost:7687/")

## End(Not run)

nicolewhite/RNeo4j documentation built on May 23, 2019, 5:09 p.m.