Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clone Snowflake metadata only

I want to clone the shell of a Snowflake database (metadata only, no data). Is this possible? I have checked the documentation and haven't found a solution.

like image 399
Ben Avatar asked May 19 '26 12:05

Ben


1 Answers

If you're just trying to get an empty shell of an existing database, you could clone the entire database, and then script out a truncate of all of the tables that exist in the database. The clone doesn't add any data, and the truncate would be very quick on the clone (while not affecting the original tables).

like image 56
Mike Walton Avatar answered May 22 '26 09:05

Mike Walton



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!