Skip to content

Commit 4e57ef2

Browse files
Document ConnectionPool(max_total_rows=) in the docstring
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 9f66561 commit 4e57ef2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

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)