with_db: Perform a DB query, without explicit locking

Description Usage Arguments

View source: R/db.R

Description

This is for read operations. They can also be called from within a transaction. In this case the database handle will be reused.

Usage

1
with_db(db_file, expr)

Arguments

db_file

File of the DB.

expr

Expression to evaluate, it can refer to the connection handle as db.


r-hub/cranlike documentation built on Nov. 24, 2021, 3:14 p.m.