Attaches a remote Quack server as a catalog in the current session. Tables in
the server's default database are then reachable as quack_name.table_name
and can be queried with get_ducklake_table() or dplyr::tbl().
Arguments
- quack_name
Name for the attached remote catalog, used as the database alias in DuckDB.
- uri
Address of the Quack server, for example
"quack:localhost"or"quack:data.example.org:9494". A bare host such as"localhost"is prefixed withquack:automatically. The default port is 9494.- token
Authentication token expected by the server. If
NULL, the token is taken from a Quack secret (seeCREATE SECRET) if one exists.- disable_ssl
Connect over plain HTTP instead of HTTPS (default
FALSE). Only appropriate on a trusted network.
Details
A DuckLake served over Quack lives in its own catalog on the server rather
than in the default database, so its tables are not exposed under
quack_name. Query a served DuckLake with quack_query(), naming the lake's
catalog, for example quack_query(uri, "SELECT * FROM trial.adsl").
Examples
if (FALSE) { # \dontrun{
# A remote DuckDB database, queried through the attached catalog
attach_quack("warehouse", "quack:data.example.org", token = "super_secret")
get_ducklake_table("warehouse.sales") |>
dplyr::filter(region == "EMEA") |>
dplyr::collect()
detach_quack("warehouse")
} # }
