Possibility to compare only a single (or list of) databases #6
Replies: 2 comments 4 replies
-
The best method to achieve this goal right now is to run SnowDDL with user having SnowDDL will not touch databases and schemas which are not directly "owned" by the role of SnowDDL user. The specific places in code with this check:
I am considering the "singledb" feature, but it will also skip management of roles & grants. Having an option to include / exclude certain databases by name seems great at first, but ... at some point someone will make a mistake or typo in command and drop everything. In my opinion, the best way to "protect" other objects is by not granting SnowDDL the ability to destroy them in the first place. I hope it makes sense :) |
Beta Was this translation helpful? Give feedback.
-
@dlaplante75 , please note The SingleDB mode with documentation is now available: https://docs.snowddl.com/single-db/overview Please update to version Enjoy! |
Beta Was this translation helpful? Give feedback.
-
Hi! I think this project is great!
I would be great to have the possibility to deploy only a single DB (or list of DBs). For example, my snowflake account has about 10 databases, my snowddl project has only 1.
Deploying the project (safe deploy only) always outputs a whole list of suggested DDL to drop everything else... thankfully, they are just suggestions. But what if I DO want to drop from the database, things that are not in my project. If I enable unsafe deployment, it will drop EVERYTHING. I would like for the deployment to only consider specific databases.
Beta Was this translation helpful? Give feedback.
All reactions