Installation
To install, run this command:Quick Start
Initialize the client and run a query:runQuery polls for completion, then retrieves one results page. If response.next_uri is present, fetch subsequent pages with client.exec.getExecutionResults(response.execution_id, { limit, offset }). The SDK does not automatically paginate this method; see pagination.
To get a recent cached result, use client.getLatestResult({ queryId: 1215383 }). It fetches all pages while the result is fresh, but may rerun the query when it has expired and then return only the first page.
Query management and uploads
Use the methods available in the published package, not a top-levelexecute() method:
client.uploads exposes list, create, uploadCsv, insert, clear, and delete. For raw SQL execution, client.exec.executeSql({ sql: "SELECT 1 AS value" }) submits a job; client.runSql({ query_sql: "SELECT 1 AS value" }) creates, runs, and archives a query and requires a Plus subscription.
Working with Query Parameters
The SDK provides helper functions for creating typed query parameters:QueryParameter.text(name, value)- For text parametersQueryParameter.number(name, value)- For number parametersQueryParameter.date(name, value)- For date parametersQueryParameter.enum(name, value)- For enum/list parameters
Additional Resources
NPM Package
View package on NPM
GitHub Repository
View source code and documentation
Report Issues
Report bugs or request features
API Reference
View full API documentation