Skip to content

Commit 527d7b1

Browse files
Cycle 26: document ConnectionPool(max_total_rows=) in the docstring
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 5c4f538 commit 527d7b1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/dqliteclient/pool.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ def __init__(
7373
cache, etc.) across databases or tenants.
7474
node_store: Externally-owned NodeStore used to build a new
7575
ClusterClient. Mutually exclusive with ``cluster``.
76+
max_total_rows: Cumulative row cap across continuation
77+
frames for a single query. Forwarded to every
78+
:class:`DqliteConnection` the pool hands out, so every
79+
connection inherits the same governor. ``None`` disables
80+
the cap entirely (not recommended in production —
81+
bounds memory against slow-drip attacks).
7682
"""
7783
if min_size < 0:
7884
raise ValueError(f"min_size must be non-negative, got {min_size}")

0 commit comments

Comments
 (0)