Skip to content

Commit 293ad41

Browse files
maellekrlmlr
andauthored
docs: explicitly state how to change DuckDB configuration options (#587)
* docs: explicitly state how to change DuckDB configuration options * Tweak --------- Co-authored-by: Kirill Müller <[email protected]>
1 parent c89da06 commit 293ad41

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

R/exec.R

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@
33
#' The \pkg{duckplyr} package relies on a DBI connection
44
#' to an in-memory database.
55
#' The `db_exec()` function allows running SQL statements
6-
#' with this connection to, e.g., set up credentials
6+
#' with side effects on this connection.
7+
#' It can be used to execute statements that start with
8+
#' `PRAGMA`, `SET`, or `ATTACH`
9+
#' to, e.g., set up credentials, change configuration options,
710
#' or attach other databases.
811
#' See <https://duckdb.org/docs/configuration/overview.html>
9-
#' for more information on the configuration options.
12+
#' for more information on the configuration options,
13+
#' and <https://duckdb.org/docs/sql/statements/attach.html>
14+
#' for attaching databases.
1015
#'
1116
#' @seealso [read_sql_duckdb()]
1217
#'

man/db_exec.Rd

Lines changed: 7 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vignettes/large.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ At the time of writing, direct JSON export is not supported.
269269

270270
Computations carried out by DuckDB allocate RAM in the context of the R process.
271271
This memory separate from the memory used by R objects, and is managed by DuckDB.
272-
Limit the memory used by DuckDB by setting a pragma:
272+
Limit the memory used by DuckDB by setting a pragma with `db_exec()`:
273273

274274
```{r}
275275
read_sql_duckdb("SELECT current_setting('memory_limit') AS memlimit")

0 commit comments

Comments
 (0)