do_query: Runs a query agains the database

Description Usage Arguments Value

View source: R/query.R

Description

Runs a query agains the database

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
do_query(
  query,
  server.url = NULL,
  timeout = NULL,
  print.json = FALSE,
  auth.token = NULL,
  verbose = FALSE,
  optimize = TRUE,
  ...
)

Arguments

query

The query as returned by query

server.url

Optional. The server URL against which the query is run. This can be set globally using set_server_url

timeout

Optional. The query timeout in milliseconds

print.json

If set to TRUE, prints the JSON version of the query that is sent to the server (useful for debugging purposes)

auth.token

Optional string. The authorization token to be used for this query

verbose

Optional, currently unused

optimize

Whether to use the server-side query optimizer

...

Additional arguments passed to either convert_query_results or either convert_pull_query_results

Value

Returns a data.frame or vector with the query results. In the former case the column names are taken from the symbols that appear in the find portion of the query


ParkerICI/datalogr documentation built on Aug. 16, 2021, 10:59 a.m.