Learn R Programming

nodbi (version 0.9.0)

src_duckdb: Setup a DuckDB database connection

Description

Setup a DuckDB database connection

Usage

src_duckdb(drv = duckdb::duckdb(), dbdir = ":memory:", ...)

Arguments

drv

Object returned by duckdb()

dbdir

Location for database files. Should be a path to an existing directory in the file system. With the default, all data is kept in RAM

...

Additional named parameters passed on to DBI::dbConnect()

Details

Uses duckdb::duckdb() under the hood

Examples

Run this code
if (FALSE) {
con <- src_duckdb()
print(con)
}

Run the code above in your browser using DataLab