db_is_shema_exist.R 349 B

123456789101112131415
  1. #' Does the schema exist
  2. #'
  3. #' Kontrollime kas andmebaasis antud schema eksisteerib.
  4. #' @param schema str Database schema name.
  5. #' @keywords database, schema
  6. #' @export
  7. #' @examples
  8. #' db_is_shema_exist(schema = "public")
  9. db_is_shema_exist <- function(schema = NULL) {
  10. if (schema %in% ruut::db_all_schemas()) {
  11. TRUE
  12. } else {
  13. FALSE
  14. }
  15. }