Skip to content

Commit

Permalink
update so we can use neo4j+s
Browse files Browse the repository at this point in the history
  • Loading branch information
mneedham committed Jul 8, 2020
1 parent 57e7d72 commit d18f89e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
class App:

def __init__(self, uri, user, password):
# Aura queries use an encrypted connection
self.driver = GraphDatabase.driver(uri, auth=(user, password), encrypted=True)
self.driver = GraphDatabase.driver(uri, auth=(user, password))

def close(self):
# Don't forget to close the driver connection when you are finished with it
Expand Down Expand Up @@ -90,8 +89,9 @@ def _find_and_return_person(tx, person_name):
result = tx.run(query, person_name=person_name)
return [row["name"] for row in result]


if __name__ == "__main__":
# Aura uses the "bolt+routing" protocol
# Aura queries use an encrypted connection using the "neo4j+s" protocol
bolt_url = "%%BOLT_URL_PLACEHOLDER%%"
user = "<Username for Neo4j Aura database>"
password = "<Password for Neo4j Aura database>"
Expand Down

0 comments on commit d18f89e

Please sign in to comment.