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()

}
gogonzo/oddsandsods documentation built on May 12, 2019, 1:35 a.m.