read_sql_duckdb | R Documentation |
Runs a query and returns it as a duckplyr frame.
read_sql_duckdb(
sql,
...,
prudence = c("thrifty", "lavish", "stingy"),
con = NULL
)
sql |
The SQL to run. |
... |
These dots are for future extensions and must be empty. |
prudence |
Memory protection, controls if DuckDB may convert intermediate results in DuckDB-managed memory to data frames in R memory.
The default is |
con |
The connection, defaults to the default connection. |
Using data frames from the calling environment is not supported yet, see https://github.com/duckdb/duckdb-r/issues/645 for details.
db_exec()
read_sql_duckdb("FROM duckdb_settings()")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.