R/dbi_backend_tools.R

Defines functions create_backend_dbi

#' Create a backend for the DBI (databases)
#'
#' @param backend The backend to create and because of DBI, a "drv" is mandatory
#' @return A new backend based on R6 class
#' @noRd
create_backend_dbi <- function(backend) {
  if (is.null(backend$drv)) {
    cli::cli_abort("drv is a required field for dbi backend")
  }

  create_backend(backend)
}

Try the connector package in your browser

Any scripts or data that you put into this service are public.

connector documentation built on June 8, 2025, 11:36 a.m.