View source: R/sql-connector.R
db_sql_client | R Documentation |
Create Databricks SQL Connector Client
db_sql_client(
id,
catalog = NULL,
schema = NULL,
compute_type = c("warehouse", "cluster"),
use_cloud_fetch = FALSE,
session_configuration = list(),
host = db_host(),
token = db_token(),
workspace_id = db_current_workspace_id(),
...
)
id |
String, ID of either the SQL warehouse or all purpose cluster.
Important to set |
catalog |
Initial catalog to use for the connection. Defaults to |
schema |
Initial schema to use for the connection. Defaults to |
compute_type |
One of |
use_cloud_fetch |
Boolean (default is If |
session_configuration |
A optional named list of Spark session
configuration parameters. Setting a configuration is equivalent to using the
|
host |
Databricks workspace URL, defaults to calling |
token |
Databricks workspace token, defaults to calling |
workspace_id |
String, workspace Id used to build the http path for the
connection. This defaults to using |
... |
passed onto |
Create client using Databricks SQL Connector.
DatabricksSqlClient()
## Not run:
client <- db_sql_client(id = "<warehouse_id>", use_cloud_fetch = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.