| conn_setting | R Documentation |
When called with no arguments, returns all settings as a data frame. When name
is supplied and value is NULL, returns the value of that setting. When
both name and value are supplied, executes SET <name> = <value>.
conn_setting(conn = conn_default(), name = NULL, value = NULL)
conn |
A DuckDB connection. |
name |
Optional character scalar. Setting name. |
value |
Optional value to set. Coerced to character; DuckDB casts it to the appropriate type. |
All settings: a tibble::tibble(). Single setting read: a
character scalar. Write: conn invisibly.
conn <- DBI::dbConnect(duckdb::duckdb())
conn_setting(conn, "threads")
DBI::dbDisconnect(conn, shutdown = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.