From 005c7f2c5d605bdcd923d235790ceb76771c01e9 Mon Sep 17 00:00:00 2001 From: Aleksandr Shtaub <91491081+aleksandr-shtaub@users.noreply.github.com> Date: Mon, 27 Nov 2023 00:19:23 +0200 Subject: [PATCH] Add basic Psycopg3Connector docs --- docs/howto/connector.rst | 2 ++ docs/reference.rst | 2 ++ 2 files changed, 4 insertions(+) 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