Repository navigation
feat(sql): add list_clusters across all bindings - #65
Merged
Merged
Conversation
The SQL Explorer API exposes a public cluster catalog at GET clusters. The request uses the keyless HTTP client so the account API key is not sent and an SDK without a key can call it.
Adds SqlCluster to the Python and TypeScript exports and the RBS signature for Ruby. The regenerated type files also pick up an existing gateway_drip doc-comment change that had not been regenerated.
The four SQL example scripts now list clusters first and assert that each entry has an id and a display name.
johnpmitsch
marked this pull request as ready for review
November 13, 2026 14:54
The clusters endpoint returns 401 when the x-api-key header is missing, so the request now uses the same keyed client as query and get_schema.
AlejandroFabianCampos
approved these changes
Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
tl;dr
Adds
list_clustersto the SQL Explorer client in Rust, Python, Node.js (listClusters), and Ruby. It callsGET /sql/rest/v1/clustersand returns the clusters a caller can query, each with anidand adisplay_name.Impact
qn.sql.list_clusters()and new exported typeSqlClusterin all four packages. Nothing existing changes.queryandget_schema.Vec<SqlCluster>, Pythonlist[SqlCluster], Node.jsArray<SqlCluster>(displayName), RubyArrayof hashes (id,display_name).Where to focus your review
npm/sdk.d.ts:SqlClusteris imported at the top of the file as well as re-exported, solistClusters()resolves toPromise<SqlCluster[]>for consumers.npm/index.d.tsandpython/quicknode_sdk/_core/__init__.pyiare generated. Both also pick up an existinggateway_dripdoc-comment change that had not been regenerated, and the Python stub has seven whitespace-only lines from the generator.Decisions & tradeoffs
main.Technical notes
SqlClusterdirectly through itsnapi(object)attribute. It needs no wrapper type because it has no renamed field and no dynamic rows.list_clusterswith arity 0, the same as the other methods without parameters.list_clustersfirst and assert that each entry has an ID and a display name and that the script's cluster ID is in the list.How I verified it
AI: built, tested, and self-reviewed (jreview) by john-pipeline running Claude Code.
Ran:
cargo test -p quicknode-sdk --libpasses (289 tests, 3 new: success with thex-api-keyheader on the wire, API error, decode error)cargo fmt --all -- --check,cargo check --workspace,cargo clippy --workspace --lib --tests -- -D warningspasscargo clippy -p quicknode-sdk --lib --testspasses with no features and withrust,payments,payments-tempolist_clustersandSqlClusterjust node-buildpasses (build andnpm test)just ruby-buildpassesApiErrorand bad JSON toDecodeError, and sends thex-api-keyheaderlistClustersreturnshyperliquid-core-mainnetandsolana-mainnetNot checked:
Confidence assessment: how likely is this to affect or break prod
Overall: low risk of breakage, small blast radius if it does, fully reversible by code revert.
queryandget_schemaare untouched; their tests pass unchangedid,display_name); extra fields are ignored by serdeDecodeErrorwith the raw bodyNot verifiable from here: