R/mg_column_exists.R

Defines functions mg_column_exists

Documented in mg_column_exists

#' Check if a table (collection) exists in a mongo DB.
#'
#' @name mg_column_exists
#'
#' @param table name as a character
#' @param name of the column as a character
#'
#' @return logical
mg_column_exists <- function(table, name) {
  name %in% (mg_col_names(table))
}
Cronbach-GmbH/mgdbs documentation built on Dec. 17, 2021, 3:08 p.m.