Skip to content

Instantly share code, notes, and snippets.

View kkolk's full-sized avatar
🏠
Working from home

Kevin Kolk kkolk

🏠
Working from home
View GitHub Profile
@kkolk
kkolk / snowflake_copy_database_by_table.py
Last active December 21, 2022 03:11
Copy shared Snowflake Database table by table
# Useful when you want to make a full copy of a Snowflake Database that is shared with your account
# into a database in your account, but you can't use clone database / etc.
#!/usr/bin/env python
import os
import re
# https://docs.snowflake.com/en/user-guide/python-connector.html
import snowflake.connector
# Connect to snowflake