|
Databricks C++ SDK 0.2.4
Interact with Databricks via an SDK
|
Builder pattern for constructing Client with modular configuration. More...
#include <client.h>
Public Member Functions | |
| Builder () | |
| Builder & | with_auth (const AuthConfig &auth) |
| Set authentication configuration. | |
| Builder & | with_sql (const SQLConfig &sql) |
| Set SQL configuration. | |
| Builder & | with_pooling (const PoolingConfig &pooling) |
| Set connection pooling configuration (optional) | |
| Builder & | with_environment_config (const std::string &profile="DEFAULT") |
| Load configuration from environment (profile + env vars) | |
| Builder & | with_auto_connect (bool enable=true) |
| Enable auto-connect (connects immediately on build) | |
| Builder & | with_retry (const RetryConfig &retry) |
| Set retry configuration for automatic error recovery. | |
| Client | build () |
| Build the Client. | |
Builder pattern for constructing Client with modular configuration.
The Builder provides a fluent interface for configuring the Client. It ensures that all required configuration is provided before building.
| databricks::Client::Builder::Builder | ( | ) |
| Client databricks::Client::Builder::build | ( | ) |
| Builder & databricks::Client::Builder::with_auth | ( | const AuthConfig & | auth | ) |
Set authentication configuration.
| auth | Authentication configuration |
| Builder & databricks::Client::Builder::with_auto_connect | ( | bool | enable = true | ) |
Enable auto-connect (connects immediately on build)
| enable | If true, connects immediately; if false, lazy connection (default: false) |
| Builder & databricks::Client::Builder::with_environment_config | ( | const std::string & | profile = "DEFAULT" | ) |
Load configuration from environment (profile + env vars)
This is a convenience method that loads auth and SQL config from:
| profile | Profile name to load (default: "DEFAULT") |
| std::runtime_error | if configuration cannot be loaded |
| Builder & databricks::Client::Builder::with_pooling | ( | const PoolingConfig & | pooling | ) |
Set connection pooling configuration (optional)
| pooling | Pooling configuration |
| Builder & databricks::Client::Builder::with_retry | ( | const RetryConfig & | retry | ) |
Set retry configuration for automatic error recovery.
Configures how the client handles transient failures like connection timeouts and network errors. When enabled, failed operations will be automatically retried with exponential backoff.
| retry | Retry configuration |
Set SQL configuration.
| sql | SQL-specific configuration |