diff --git a/docs/howto/connector.rst b/docs/howto/connector.rst index 693bd0552..f0462a321 100644 --- a/docs/howto/connector.rst +++ b/docs/howto/connector.rst @@ -43,6 +43,7 @@ You can use other `aiopg connection arguments`_ (which are the same as .. _`aiopg connection arguments`: https://aiopg.readthedocs.io/en/stable/core.html#aiopg.connect .. _`psycopg2 connection arguments`: http://initd.org/psycopg/docs/module.html#psycopg2.connect +.. _`psycopg3 connection arguments`: https://www.psycopg.org/psycopg3/docs/api/pool.html#psycopg_pool.AsyncConnectionPool Other arguments --------------- @@ -61,3 +62,4 @@ Procrastinate currently provides 2 connectors: - `Psycopg2Connector`: This connector is specialized for synchronous calls only, and should only be used to configure your app for synchronous multi-threaded applications that need to :term:`defer` tasks synchronously (see `discussion-sync-defer`). +- `Psycopg3Connector`: Asynchronous connector based on the next generation of psycopg. diff --git a/docs/reference.rst b/docs/reference.rst index 74162aac2..726aa37a1 100644 --- a/docs/reference.rst +++ b/docs/reference.rst @@ -15,6 +15,8 @@ Connectors .. autoclass:: procrastinate.Psycopg2Connector +.. autoclass:: procrastinate.Psycopg3Connector + .. autoclass:: procrastinate.testing.InMemoryConnector :members: reset