safeSrcSQLite | R Documentation |
By default, dbConnect(RSQLite::SQLite(), ...)
connects and immediately
tries to set synchronous mode. If the database is locked, this
fails before we can use pragma busy_timeout to set a timeout handler.
This can be circumvented if synchronous=NULL
is added to the
call to dbConnect.
safeSrcSQLite(path, create = FALSE)
path |
path to database |
create |
should database be created if it doesn't already exist; default: FALSE |
So this function just augments dplyr::src_sqlite
with that workaround.
a dplyr::src_sqlite object.
parameters, return value, and semantics are identical to
dplyr::src_sqlite
except that a locked sqlite database
will be handled gracefully with retries.
minor changes from dplyr::src_sqlite by John Brzustowski
safeSQLiteConnect
which this function calls.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.