]> git.ipfire.org Git - thirdparty/psycopg.git/commit
feat: add a size parameter to Cursor.stream() 794/head
authorDenis Laxalde <denis.laxalde@dalibo.com>
Wed, 17 Apr 2024 09:38:43 +0000 (11:38 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 13 Jun 2024 14:05:36 +0000 (16:05 +0200)
commit9346151d9c9888e549181bfc81bcf85105453903
treeb9b8c33f7b14956ca72d0e9aab4840611c77bc5b
parentbde8c1ed49bd4ad167e6d2600ca18c484338c0d5
feat: add a size parameter to Cursor.stream()

This triggers results retrieval by chunks from the server, if > 1,
leveraging the "chunked rows mode" from libpq 17.

A new has_stream_chunked() capability is added.
docs/api/cursors.rst
docs/api/objects.rst
docs/news.rst
psycopg/psycopg/_capabilities.py
psycopg/psycopg/_cursor_base.py
psycopg/psycopg/cursor.py
psycopg/psycopg/cursor_async.py
psycopg/psycopg/rows.py
tests/test_capabilities.py
tests/test_cursor_common.py
tests/test_cursor_common_async.py