with_db: Perform a DB query, without explicit locking

View source: R/db.R

with_dbR Documentation

Perform a DB query, without explicit locking

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

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 April 25, 2024, 9:22 a.m.