Skip to content

Commit 60b7ed1

Browse files
Whitelist max_total_rows in the dqlite URL query allowlist
Cycle 9 — ``dqlite://host:port/db?timeout=30&max_total_rows=50000000`` now forwards max_total_rows to the DBAPI, matching the knob added to the client and dbapi layers. Unknown query keys still raise ArgumentError so typos surface. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent c6da7f4 commit 60b7ed1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sqlalchemydqlite/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def import_dbapi(cls) -> Any:
8282

8383
# Whitelist of URL query parameters we forward to the DBAPI connect
8484
# call. Unknown keys raise ``ArgumentError`` so typos surface.
85-
_URL_QUERY_ALLOWED: dict[str, type] = {"timeout": float}
85+
_URL_QUERY_ALLOWED: dict[str, type] = {"timeout": float, "max_total_rows": int}
8686

8787
def create_connect_args(self, url: URL) -> tuple[list[Any], dict[str, Any]]:
8888
"""Create connection arguments from URL.

0 commit comments

Comments
 (0)