con <- DBI::dbConnect(duckdb::duckdb())
validate_database_schema_exists(con, "memory", "main")Check if a Schema Exists in a Database
Source: R/utils-db.R
Checks whether a schema with the specified name exists within a given database.
Usage
validate_database_schema_exists(.con, database_name, target_schema)Arguments
Value
Logical TRUE if the schema exists, FALSE otherwise.
Details
This function queries the information schema to check if the specified schema exists within the given database.