Connect to a GlareDB database
Usage
glaredb_connect(
data_dir_or_cloud_url = NULL,
...,
spill_path = NULL,
disable_tls = FALSE,
cloud_addr = "https://console.glaredb.com",
location = NULL,
storage_options = NULL,
env = parent.frame()
)
Arguments
- data_dir_or_cloud_url
A character of path to a local GlareDB database or a cloud URL or
NULL
. IfNULL
, a in-memory database is used.- ...
Ignored.
- spill_path
TODO
- disable_tls
TRUE
orFALSE
to indicating whether to disable TLS.- cloud_addr
A character of a GlareDB cloud URL.
- location
TODO
- storage_options
Named character vector of storage options or
NULL
(default).- env
TODO
Examples
con <- glaredb_connect()
con
#> GlareDB connection
#> Connected to <environment: 0x562fe1ffd0c0>
glaredb_sql("SELECT 'hello from R' as hello", con) |>
as_glaredb_table()
#> ┌──────────────┐
#> │ hello │
#> │ ── │
#> │ Utf8 │
#> ╞══════════════╡
#> │ hello from R │
#> └──────────────┘