run_query {AzureKusto} | R Documentation |
Run a query or command against a Kusto database
Description
Run a query or command against a Kusto database
Usage
run_query(database, qry_cmd, ..., .http_status_handler = "stop")
Arguments
database |
A Kusto database endpoint object, as returned by |
qry_cmd |
A string containing the query or command. In KQL, a database management command is a statement that starts with a "." |
... |
Named arguments to be used as parameters for a parameterized query. These are ignored for database management commands. |
.http_status_handler |
The function to use to handle HTTP status codes. The default "stop" will throw an R error via |
Details
This function is the workhorse of the AzureKusto package. It communicates with the Kusto server and returns the query or command results, as data frames.
See Also
kusto_database_endpoint, ingest_local, ingest_url, ingest_blob, ingest_adls2
Examples
## Not run:
endp <- kusto_database_endpoint(server="myclust.australiaeast.kusto.windows.net", database="db1")
# a command
run_query(endp, ".show table iris")
# a query
run_query(endp, "iris | count")
## End(Not run)