R/rest-api.r
drill_storage.Rd
Retrieve, modify or remove storage plugins from a Drill instance. If you intend
to modify an existing configuration it is suggested that you use the "list
" or
"raw
" values to the as
parameter to make it easier to modify them.
drill_storage(drill_con, plugin = NULL, as = c("tbl", "list", "raw")) drill_mod_storage(drill_con, name, config) drill_rm_storage(drill_con, name)
drill_con | drill server connection object setup by |
---|---|
plugin | the assigned name in the storage plugin definition. |
as | one of " |
name | name of the storage plugin configuration to create/update/remove |
config | a raw 1-element character vector containing valid JSON of a complete storage spec |
Other Drill direct REST API Interface:
drill_active()
,
drill_cancel()
,
drill_connection()
,
drill_functions()
,
drill_metrics()
,
drill_options()
,
drill_opts()
,
drill_profiles()
,
drill_profile()
,
drill_query()
,
drill_settings_reset()
,
drill_set()
,
drill_stats()
,
drill_status()
,
drill_system_reset()
,
drill_threads()
,
drill_version()
if (FALSE) { drill_connection() %>% drill_storage() drill_connection() %>% drill_mod_storage( name = "drilldat", config = ' { "config" : { "connection" : "file:///", "enabled" : true, "formats" : null, "type" : "file", "workspaces" : { "root" : { "location" : "/Users/hrbrmstr/drilldat", "writable" : true, "defaultInputFormat": null } } }, "name" : "drilldat" } ') }