with_db_lock {cranlike} | R Documentation |
This creates a transaction, and an exclusive lock. It always creates a new DB connection, and closes it on exit.
with_db_lock(db_file, expr)
db_file |
File of the DB. |
expr |
Expression to evaluate, it can refer to the connection
handle as |