diff --git a/R/connection.R b/R/connection.R index bd6cf982..0ab4ed6b 100644 --- a/R/connection.R +++ b/R/connection.R @@ -25,6 +25,8 @@ #' An object that inherits from DBIConnection driver specified in drv #' @examples #' \dontrun{ +#' conn <- get_connection(drv = RSQLite::SQLite(), dbname = ":memory:") +#' #' close_connection(conn) #' } #' diff --git a/man/get_connection.Rd b/man/get_connection.Rd index 260fe270..eed7a5bf 100644 --- a/man/get_connection.Rd +++ b/man/get_connection.Rd @@ -44,6 +44,8 @@ Certain drivers may use credentials stored in a file, such as ~/.pgpass (Postgre } \examples{ \dontrun{ +conn <- get_connection(drv = RSQLite::SQLite(), dbname = ":memory:") + close_connection(conn) }