@@ -370,6 +370,8 @@ Closing a driver will immediately shut down all connections in the pool.
370370 :returns: the result of the ``result_transformer_ ``
371371 :rtype: T
372372
373+ :raises DriverError: if the driver has been closed.
374+
373375 .. versionadded :: 5.5
374376
375377 .. versionchanged :: 5.8
@@ -384,6 +386,9 @@ Closing a driver will immediately shut down all connections in the pool.
384386 The ``query_ `` parameter now also accepts a :class: `.Query ` object
385387 instead of only :class: `str `.
386388
389+ .. versionchanged :: 6.0
390+ Raise :exc: `DriverError ` if the driver has been closed.
391+
387392
388393.. _driver-configuration-ref :
389394
@@ -401,7 +406,6 @@ Additional configuration can be provided via the :class:`neo4j.Driver` construct
401406+ :ref: `max-connection-pool-size-ref `
402407+ :ref: `max-transaction-retry-time-ref `
403408+ :ref: `resolver-ref `
404- + :ref: `trust-ref `
405409+ :ref: `ssl-context-ref `
406410+ :ref: `trusted-certificates-ref `
407411+ :ref: `client-certificate-ref `
@@ -568,39 +572,6 @@ For example:
568572:Default: :data: `None `
569573
570574
571- .. _trust-ref :
572-
573- ``trust ``
574- ---------
575- Specify how to determine the authenticity of encryption certificates provided by the Neo4j instance on connection.
576-
577- This setting is only available for URI schemes ``bolt:// `` and ``neo4j:// `` (:ref: `uri-ref `).
578-
579- This setting does not have any effect if ``encrypted `` is set to ``False `` or a
580- custom ``ssl_context `` is configured.
581-
582- :Type: ``neo4j.TRUST_SYSTEM_CA_SIGNED_CERTIFICATES ``, ``neo4j.TRUST_ALL_CERTIFICATES ``
583-
584- .. py :attribute :: neo4j.TRUST_ALL_CERTIFICATES
585-
586- Trust any server certificate (default). This ensures that communication
587- is encrypted but does not verify the server certificate against a
588- certificate authority. This option is primarily intended for use with
589- the default auto-generated server certificate.
590-
591- .. py :attribute :: neo4j.TRUST_SYSTEM_CA_SIGNED_CERTIFICATES
592-
593- Trust server certificates that can be verified against the system
594- certificate authority. This option is primarily intended for use with
595- full certificates.
596-
597- :Default: ``neo4j.TRUST_SYSTEM_CA_SIGNED_CERTIFICATES ``.
598-
599- .. deprecated :: 5.0
600- This configuration option is deprecated and will be removed in a future
601- release. Please use :ref: `trusted-certificates-ref ` instead.
602-
603-
604575.. _ssl-context-ref :
605576
606577``ssl_context ``
@@ -2217,9 +2188,9 @@ The Python Driver uses the built-in :class:`python:ResourceWarning` class to war
22172188.. _development mode : https://docs.python.org/3/library/devmode.html#devmode
22182189
22192190
2220- .. autoclass :: neo4j.PreviewWarning
2221-
2222- .. autoclass :: neo4j.ExperimentalWarning
2191+ .. autoclass :: neo4j.warnings. PreviewWarning
2192+ :show-inheritance:
2193+ :members:
22232194
22242195.. autoclass :: neo4j.warnings.Neo4jWarning
22252196 :show-inheritance:
@@ -2235,12 +2206,12 @@ The Python Driver uses the built-in :class:`python:ResourceWarning` class to war
22352206Filtering Warnings
22362207==================
22372208
2238- This example shows how to suppress the :class: `neo4j.PreviewWarning ` using the :func: `python:warnings.filterwarnings ` function.
2209+ This example shows how to suppress the :class: `neo4j.warnings. PreviewWarning ` using the :func: `python:warnings.filterwarnings ` function.
22392210
22402211.. code-block :: python
22412212
22422213 import warnings
2243- from neo4j import PreviewWarning
2214+ from neo4j.warnings import PreviewWarning
22442215
22452216 ...
22462217
@@ -2250,7 +2221,7 @@ This example shows how to suppress the :class:`neo4j.PreviewWarning` using the :
22502221
22512222 ...
22522223
2253- This will only mute the :class: `neo4j.PreviewWarning ` for everything inside
2224+ This will only mute the :class: `neo4j.warnings. PreviewWarning ` for everything inside
22542225the ``with ``-block. This is the preferred way to mute warnings, as warnings
22552226triggerd by new code will still be visible.
22562227
@@ -2263,7 +2234,7 @@ following code:
22632234.. code-block :: python
22642235
22652236 import warnings
2266- from neo4j import PreviewWarning
2237+ from neo4j.warnings import PreviewWarning
22672238
22682239 warnings.filterwarnings(" ignore" , category = PreviewWarning)
22692240
0 commit comments