with_db_lock: Perform a DB query, with locking

View source: R/db.R

with_db_lockR Documentation

Perform a DB query, with locking

Description

This creates a transaction, and an exclusive lock. It always creates a new DB connection, and closes it on exit.

Usage

with_db_lock(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.