The database connection used when a specific connection is not provided can be set with this function. It can also be switched.
default_db(source = Sys.getenv("AM_DB_SOURCE"))
source | string, one of "sqlite", "duckdb", "mysql" or "extdata" |
---|
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).
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()