R/check_lock_tables.R

#' @export
checkLockedTables <- function(con, tables_list){
  processes <- customQuery({"show processlist;"})

  tables_list_regexp <- paste(tables_list, collapse="|")

  grepl( tables_list_regexp,processes$Command  ) %>%
    any(  ) %>%
    return()

}
elo2zero/oddsandsods documentation built on May 16, 2019, 3:04 a.m.