All URIs are relative to http://localhost/v1
Method | HTTP request | Description ------------- | ------------- | ------------- RunSQL | POST /sql/{namespace} |
array[object] RunSQL(namespace, sql, accept.encoding=var.accept.encoding)
Run a sql query
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("name_example", "query_example", "output_uri_example", "store_results_example", ResultFormat$new(), list("init_commands_example"), list(123)) # 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
api.instance$apiClient$username <- 'TODO_YOUR_USERNAME';
api.instance$apiClient$password <- 'TODO_YOUR_PASSWORD';
result <- api.instance$RunSQL(var.namespace, var.sql, accept.encoding=var.accept.encoding)
dput(result)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- namespace | character| namespace to run task under is in (an organization name or user's username) | sql | SQLParameters| sql being submitted | accept.encoding | character| Encoding to use | [optional]
array[object]
| Status code | Description | Response headers | |-------------|-------------|------------------| | 200 | JSON results in array of objects form, if the query returns results | * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request | | 204 | SQL executed successfully | * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request | | 0 | error response | - |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.