default_db: Set or switch the default database used

Description Usage Arguments Details See Also

View source: R/db.R

Description

The database connection used when a specific connection is not provided can be set with this function. It can also be switched.

Usage

1
default_db(source = Sys.getenv("AM_DB_SOURCE"))

Arguments

source

string, one of "sqlite", "duckdb", "mysql" or "extdata"

Details

the "extdata" source refers to a minified < 1MB sqlite3 db with a very small subset of the full data, which is bundled into the package and which allows tests and vignettes to run in the package without having the full dataset installed locally (during for staged installation).

See Also

Other admin: am_custom_query(), am_db_duckdb(), am_db_sqlite(), am_use_offline_db(), con_am(), db_disco(), db_minify_path(), db_minify(), db_sync(), http_ping()


raquamaps/aquamapsdata documentation built on Feb. 25, 2021, 10:28 p.m.