[CT-2784] [Feature] Add macro drop_schema_named
as wrapper around adapter.drop_schema
#8025
Closed
3 tasks done
Labels
Is this your first time submitting a feature request?
Describe the feature
internal slack thread for context
Create a new macro to drop schemas that can be easily called from the CLI (via
run-operation
), by simply passing the schema name as a string, rather than requiring the prior construction of aRelation
object.(This should be
adapter.drop_schema
to take advantage of transaction handling required for some databases)Then, it can be called from the CLI, without requiring any customization to the global project:
Describe alternatives you've considered
This works in v1.5+, but it feels pretty hacky:
Who will this benefit?
Deployment & orchestration tools (e.g. dbt Cloud) that need to create temporary schemas, and then wish to leverage dbt's per-adapter capabilities for dropping them
Are you interested in contributing this feature?
sure :)
Anything else?
No response
The text was updated successfully, but these errors were encountered: