From 24be1abb11095a09ce14539fb2af78b96dc1f9f3 Mon Sep 17 00:00:00 2001 From: Charles Leifer Date: Thu, 5 Mar 2026 12:23:23 -0600 Subject: [PATCH] Think I got them all... --- docs/peewee/database.rst | 4 ++-- docs/peewee/db_tools.rst | 2 +- docs/peewee/example.rst | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/peewee/database.rst b/docs/peewee/database.rst index ba45269b..ac108fcc 100644 --- a/docs/peewee/database.rst +++ b/docs/peewee/database.rst @@ -481,7 +481,7 @@ See :ref:`framework-integration` for framework-specific examples. Peewee uses thread local storage to manage connection state, so this pattern can be used with multi-threaded or gevent applications. - Peewee's :ref:`asyncio integration ` stores connection state in + Peewee's :ref:`asyncio integration ` stores connection state in task-local storage, so the same pattern applies. Context managers @@ -559,7 +559,7 @@ the Peewee :class:`Database` object safe to use with multiple threads. Each thread will have it's own connection, and as a result any given thread will only have a single connection open at a given time. -Peewee's :ref:`asyncio integration ` stores connection state in +Peewee's :ref:`asyncio integration ` stores connection state in task-local storage, so the same applies to async applications. DB-API Connection object diff --git a/docs/peewee/db_tools.rst b/docs/peewee/db_tools.rst index a0ffc017..c9075fd4 100644 --- a/docs/peewee/db_tools.rst +++ b/docs/peewee/db_tools.rst @@ -179,7 +179,7 @@ returns it to the pool rather than actually disconnecting. .. include:: pool-snippet.rst .. note:: - Applications using Peewee's :ref:`asyncio integration ` do not need to + Applications using Peewee's :ref:`asyncio integration ` do not need to use a special pooled database - the Async databases use a connection pool by default. diff --git a/docs/peewee/example.rst b/docs/peewee/example.rst index beb2d3c1..8a1cb5d3 100644 --- a/docs/peewee/example.rst +++ b/docs/peewee/example.rst @@ -246,7 +246,7 @@ Flask provides connection setup/teardown hooks via decorators: Peewee uses thread local storage to manage connection state, so this pattern can be used with multi-threaded or gevent WSGI servers. - Peewee's :ref:`asyncio integration ` stores connection state in + Peewee's :ref:`asyncio integration ` stores connection state in task-local storage, so the same pattern applies. Making Queries