R/marshal.DBI.R

Defines functions marshallable.DBIConnection marshal.DBIConnection

Documented in marshal.DBIConnection marshallable.DBIConnection

#' Marshalling of 'DBI:DBIConnection' objects (not supported)
#'
#' _Warning: Objects of this class are not possible to marshal.
#'  If attempted, an error is produced._
#'
#' @param x A [DBI::DBIConnection-class] object.
#'
#' @param \dots Not used.
#'
#' @return
#' A `marshalled` object as described in [marshal()].
#'
#' @rdname marshal.DBI
#' @aliases marshal.DBIConnection
#' @export
marshal.DBIConnection <- function(x, ...) {
  stop(MarshalNotSupportedError(object = x))
}


#' @rdname marshal.DBI
#' @aliases marshallable.DBIConnection
#' @export
marshallable.DBIConnection <- function(...) {
  FALSE
}
HenrikBengtsson/marshal documentation built on June 11, 2024, 11:35 a.m.