| load_delta | R Documentation |
Validates the URL, loads the azure and delta extensions, then registers
the table either as an ATTACH database or a VIEW. Use az_conn() first if
the connection needs an Azure secret. Returns conn invisibly — use
tbl_delta() if you want a dplyr::tbl().
load_delta(
conn,
url,
name,
method = c("attach", "view"),
replace = TRUE,
version = NULL,
timestamp = NULL
)
conn |
A DuckDB connection. |
url |
Character scalar. Azure Blob URL pointing to a Delta table. |
name |
Character scalar. Name to register the table under in DuckDB. |
method |
|
replace |
Logical. Replace an existing registration. Default |
version |
Optional non-negative Delta table version to attach. |
timestamp |
Optional Delta table timestamp to attach. Only one of
|
Invisibly returns conn.
## Not run:
# Requires a live Azure account, credentials, and network access.
conn <- az_conn()
load_delta(conn, "abfss://container@account/path/sales", name = "sales")
DBI::dbGetQuery(conn, "SELECT COUNT(*) FROM sales")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.