Mobilize.Net Database Deploy tool for Snowflake
Project description
sc-deploy-db is a multi-platform command line tool for deploying scripts to Snowflake
Installation
$ pip install snowconvert-deploy
Usage
$ sc-deploy-db -h
For general help content, pass in the -h parameter:
SnowConvertStudio Deployment Script
===================================
usage: sc-deploy-db [-h] User Password Workspace InPath LogPath [Split] [SplitPattern] [ObjectType]
positional arguments:
User User
Password Password
Workspace Path for workspace root
InPath Path for SQL scripts
LogPath Path for process logs
Split Allow splitting file contents when several statements are detected
SplitPattern Regex Pattern to use to split scripts. Use capture groups to keep separator
ObjectType Object Type to deploy table,view,procedure,function,macro
- optional arguments:
- -h, --help
show this help message and exit
This tool assumes :
that you have a collection of .sql files under a directory. It will then execute all those .sql files connecting to the specified database.
that each file contains only one statement.
Examples
If you have a folder structure like:
+ code + procs proc1.sql + tables table1.sql + folder1 table2.sql
You can deploy then by running:
sc-deploy-db -A my_sf_account -WH my_wh -U user -P password -I code
Reporting issues and feedback
If you encounter any bugs with the tool please file an issue in the Issues section of our GitHub repo.
License
sc-deploy-db is licensed under the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for snowconvert-deploy-tool-0.0.1a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a574252832c6c9a834fa389d11a5f177e111ee626164c647c200bed26be7221 |
|
MD5 | e14fcb5a95c6e5bf957f8062398009d5 |
|
BLAKE2b-256 | 6b6a5546d71ac86ebe68d5e3edf7ed2c388f6434453df64d245f5d68f5bdd89f |
Hashes for snowconvert_deploy_tool-0.0.1a1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a53fdf1fa517451a8fd40a6d853944c5df0bef2fb244eb3b808c602b050ee322 |
|
MD5 | 419dad09e9fb99586163b83ac5b3ebe5 |
|
BLAKE2b-256 | 13292b40228f66a4872e8ed190222335d3a4c1a9936a5403976a4a87694edc14 |