Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

snowconvert-deploy-tool-0.0.1a1.tar.gz (9.1 kB view hashes)

Uploaded Source

Built Distribution

snowconvert_deploy_tool-0.0.1a1-py2.py3-none-any.whl (9.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page