db_is_shema_exist.R 238 B

12345678910
  1. # Kas schema eksisteerib.
  2. db_is_shema_exist <- function(schema = NULL) {
  3. source(paste0(getwd(), "/R/db_all_schemas.R"))
  4. if (schema %in% db_all_schemas()) {
  5. TRUE
  6. } else {
  7. FALSE
  8. }
  9. }
  10. # db_is_shema_exist(schema = "x_matsalu")