Repository navigation
docs: add connection parameter reference - #184
Conversation
Add docs/connection-parameters.md — a grouped reference of every connection / session parameter the kernel accepts, mirroring the ADBC C# driver's parameter wiki. Each parameter lists its Rust field, Python kwarg, and Node.js option name alongside a description and the kernel-core default value. Groups: connection identity, auth (PAT / OAuth M2M / U2M), session defaults, HTTP client, proxy, TLS, result handling, logging, server-side session_conf (with the allowlisted keys), and transport. Values sourced from src/config.rs (defaults), pyo3/src/session.rs (Python kwargs), and napi/index.d.ts (Node.js options). Also refresh the stale README intro (it still described the removed ADBC surface) and link the new reference from README and CLAUDE.md. Co-authored-by: Isaac Signed-off-by: eric-wang-1990 <e.wang@databricks.com>
Per review feedback: - Move the parameter reference into README.md instead of a separate docs/ file (remove docs/connection-parameters.md). - Scope it to the Rust SessionConfig surface only; drop the Python / Node.js binding columns. - Revert the CLAUDE.md references link (no separate doc to point at). Co-authored-by: Isaac Signed-off-by: eric-wang-1990 <e.wang@databricks.com>
Add the cloudfetch_max_chunks_in_memory client-only session_conf key (read at session-create, folded into ResultConfig, stripped before the wire; default 16, clamped to 256) and clarify that LZ4 compression is auto-detected from the result manifest rather than a user parameter. Co-authored-by: Isaac Signed-off-by: eric-wang-1990 <e.wang@databricks.com>
The Configuration section jumped straight into parameter tables with no on-ramp. Add: - a Quick start showing SessionBuilder → execute → drain → close, using the crate-root API (verified against tests/v0_execute_e2e.rs), and - a compact config-group index table linking each subsection. Content of the parameter tables is unchanged. Co-authored-by: Isaac Signed-off-by: eric-wang-1990 <e.wang@databricks.com>
There was a problem hiding this comment.
Verdict: 1 Medium · 1 Low
Docs-only PR; the reference tables (defaults, session_conf allowlist, U2M/M2M defaults, clamp ceiling) all check out accurately against src/config.rs and src/session.rs. Two issues in the README quick-start code block: it constructs a #[non_exhaustive] HttpConfig via struct-literal syntax (won't compile for external users), and it uses rustdoc #-hidden lines that render literally in GitHub markdown.
Addresses: - #3628633971 at README.md:52 - #3628633979 at README.md:47 Signed-off-by: peco-engineer-bot[bot] <peco-engineer-bot[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Verdict: 1 Medium
Docs-only PR; the parameter tables and defaults all check out against src/config.rs (HTTP/OAuth/CloudFetch/session_conf allowlist + 256 clamp all match). One medium issue: the README quick-start's exec.close().await? won't compile because the ExecutedStatementHandle trait it lives on isn't imported.
Scope this docs PR to the connection parameter reference: drop the Quick start section and the intro rewrite that had crept into README, leaving a single Configuration section that links to CONNECTION_PARAMETERS.md. Co-authored-by: Isaac Signed-off-by: eric-wang-1990 <e.wang@databricks.com>
Correct the intro in place: the kernel exposes a Databricks-native v0 async API plus PyO3 / napi / C ABI surfaces, not just the ADBC trait surface. Co-authored-by: Isaac Signed-off-by: eric-wang-1990 <e.wang@databricks.com>
There was a problem hiding this comment.
Verdict: 1 Medium
Docs-only PR adding a connection-parameter reference; the documented defaults, field names, and cross-references I spot-checked against src/config.rs are accurate. One medium issue: the "Client-only session_conf keys" table lists only 1 of the 6 keys ClientConfKey actually accepts, which undercuts the doc's stated goal of covering the C ABI knob surface. Minor note: the PR description says the doc was also linked from CLAUDE.md References, but the diff contains no CLAUDE.md change — either add that link or drop the claim.
Addresses: - #3800367957 at CONNECTION_PARAMETERS.md:192 Signed-off-by: peco-engineer-bot[bot] <peco-engineer-bot[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Verdict: 1 High
Docs-only PR; defaults, field names, and allowlist entries otherwise check out against src/config.rs. One high-severity factual error: the CAN_CLOUD_DOWNLOAD row (CONNECTION_PARAMETERS.md:160) claims it's an allowlisted, user-settable server conf, but the code deliberately excludes it from the allowlist and drops any user value (guarded by a regression test).
Minor (nit, not blocking): the PR description says the file was added as docs/connection-parameters.md and linked from CLAUDE.md, but the diff adds CONNECTION_PARAMETERS.md at repo root and contains no CLAUDE.md change — worth reconciling the description/scope.
Addresses: - #3800385726 at CONNECTION_PARAMETERS.md:160 Signed-off-by: peco-engineer-bot[bot] <peco-engineer-bot[bot]@users.noreply.github.com>
What
Adds
docs/connection-parameters.md— a single reference listing every connection / session parameter the kernel accepts: what it means, how it's named in each binding (Rust / Python / Node.js), and its default value.Modeled on the ADBC C# driver's parameter wiki, which the kernel had no equivalent of — parameters were only discoverable by reading
src/config.rsdoc-comments,pyo3/src/session.rs#[pyo3(signature)], or the generatednapi/index.d.ts.Groups covered
Connection identity · Authentication (PAT / OAuth M2M / OAuth U2M) · Session defaults · HTTP client (timeouts, pool, retries, headers) · Proxy · TLS/SSL · Result handling (CloudFetch + type rendering) · Logging · Server-side
session_conf(with the allowlisted keys) · Transport · a short per-statement-options appendix.Each table has a Rust field / Python kwarg / Node.js option cross-reference (blank cell = binding doesn't expose it yet) plus Description and Default columns.
Sources of truth
src/config.rs(Defaultimpls)pyo3/src/session.rsnapi/index.d.tsAlso
README.md(new Configuration section) andCLAUDE.mdReferences.Docs-only change — no code touched.
This pull request and its description were written by Isaac.