Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions docs/source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Example, driver creation:

from neo4j import GraphDatabase

uri = neo4j://example.com:7687
uri = "neo4j://example.com:7687"
driver = GraphDatabase.driver(uri, auth=("neo4j", "password"), max_connection_lifetime=1000)

driver.close() # close the driver object
Expand All @@ -44,8 +44,7 @@ Example, with block context:

from neo4j import GraphDatabase

uri = neo4j://example.com:7687

uri = "neo4j://example.com:7687"
with GraphDatabase.driver(uri, auth=("neo4j", "password")) as driver:
# use the driver

Expand All @@ -69,11 +68,11 @@ Available valid URIs:

.. code-block:: python

uri = bolt://example.com:7687
uri = "bolt://example.com:7687"

.. code-block:: python

uri = neo4j://example.com:7687
uri = "neo4j://example.com:7687"

Each supported scheme maps to a particular :class:`neo4j.Driver` subclass that implements a specific behaviour.

Expand Down Expand Up @@ -1336,4 +1335,4 @@ Bookmark
********

.. autoclass:: neo4j.Bookmark
:members:
:members:
4 changes: 2 additions & 2 deletions docs/source/driver.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ On construction, the `scheme` of the URI determines the type of :class:`neo4j.Dr

Example URI::

uri = bolt://localhost:7687
uri = "bolt://localhost:7687"

Example URI::

uri = neo4j://localhost:7687
uri = "neo4j://localhost:7687"

Each supported scheme maps to a particular :class:`neo4j.Driver` subclass that implements a specific behaviour.

Expand Down