cache_db: Make a connection to the db

Description Usage Arguments Value Examples

View source: R/db_helpers.R

Description

Make a connection to the db

Usage

1
cache_db(pool = TRUE, path = cache_db_path())

Arguments

pool

logical(1) [TRUE]: Return a pool::Pool. Since pool doesn't support dbSendStatement (yet?), pool = FALSE is required for function that delete rows like cache_drop_old_rows.

path

The path to the SQLite db, defaults to cache_db_path()

Value

A conn DBI thingy or pool.

Examples

1
2
3
4
5
6
## Not run: 
cache_db_con <- cache_db()

is_already_cached("shows", 1390, cache_db_con)

## End(Not run)

jemus42/attrakttv documentation built on July 5, 2021, 5:16 a.m.