| db_context_manager | R Documentation |
Databricks Execution Context Manager (R6 Class)
Databricks Execution Context Manager (R6 Class)
db_context_manager() provides a simple interface to send commands to
Databricks cluster and return the results.
new()Create a new context manager object.
db_context_manager$new(
cluster_id,
language = c("r", "py", "scala", "sql", "sh"),
host = db_host(),
token = db_token()
)cluster_idThe ID of the cluster to execute command on.
languageOne of r, py, scala, sql, or sh.
hostDatabricks workspace URL, defaults to calling db_host().
tokenDatabricks workspace token, defaults to calling db_token().
A new databricks_context_manager object.
close()Destroy the execution context
db_context_manager$close()
cmd_run()Execute a command against a Databricks cluster
db_context_manager$cmd_run(cmd, language = c("r", "py", "scala", "sql", "sh"))cmdcode to execute against Databricks cluster
languageOne of r, py, scala, sql, or sh.
Command results
clone()The objects of this class are cloneable with this method.
db_context_manager$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.