SqlApi | R Documentation |
tiledbcloud.Sql
An R6Class
generator object
RunSQL Run a sql query
@param namespace character
@param sql SQLParameters
@param accept.encoding character
status code : 200 | JSON results in array of objects form, if the query returns results
return type : array[object]
response headers :
X-TILEDB-CLOUD-TASK-ID | Task ID for just completed query |
status code : 204 | SQL executed successfully
response headers :
X-TILEDB-CLOUD-TASK-ID | Task ID for just completed query |
status code : 0 | error response
return type : Error
response headers :
apiClient
Handles the client-server communication.
new()
SqlApi$new(apiClient)
RunSQL()
SqlApi$RunSQL(namespace, sql, accept.encoding = NULL, ...)
RunSQLWithHttpInfo()
SqlApi$RunSQLWithHttpInfo(namespace, sql, accept.encoding = NULL, ...)
clone()
The objects of this class are cloneable with this method.
SqlApi$clone(deep = FALSE)
deep
Whether to make a deep clone.
## Not run: #################### RunSQL #################### library(tiledbcloud) var.namespace <- 'namespace_example' # character | namespace to run task under is in (an organization name or user's username) var.sql <- SQLParameters$new() # SQLParameters | sql being submitted var.accept.encoding <- 'accept.encoding_example' # character | Encoding to use api.instance <- SqlApi$new() #Configure API key authorization: ApiKeyAuth api.instance$apiClient$apiKeys['X-TILEDB-REST-API-KEY'] <- 'TODO_YOUR_API_KEY'; #Configure HTTP basic authorization: BasicAuth # provide your username in the user-serial format api.instance$apiClient$username <- '<user-serial>'; # provide your api key generated using the developer portal api.instance$apiClient$password <- '<api_key>'; result <- api.instance$RunSQL(var.namespace, var.sql, accept.encoding=var.accept.encoding) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.