R/dbListObjects_DBIConnection_ANY.R

Defines functions dbListObjects_DBIConnection_ANY

Documented in dbListObjects_DBIConnection_ANY

#' @rdname hidden_aliases
#' @usage NULL
dbListObjects_DBIConnection_ANY <- function(conn, prefix = NULL, ...) {
  names <- dbListTables(conn)
  tables <- lapply(names, function(x) Id(table = x))
  ret <- data.frame(
    table = I(unname(tables)),
    stringsAsFactors = FALSE
  )
  ret$is_prefix <- rep_len(FALSE, nrow(ret))
  ret
}
#' @rdname hidden_aliases
#' @export
setMethod("dbListObjects", signature("DBIConnection", "ANY"), dbListObjects_DBIConnection_ANY)

Try the DBI package in your browser

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

DBI documentation built on June 22, 2024, 9:41 a.m.