No project description provided
Project description
Table of Contents
About The Project
sprocketship
makes it easy to develop, manage, and deploy stored procedures in Snowflake. Using the language of your choosing, you can write the contents of your stored procedure separately from its configurations (e.g., EXECUTE AS
, RETURN TYPE
, etc.).
Built With
Installation
pip install sprocketship
Usage
Currently, sprocketship expects a .sprocketship.yml
file and a procedures/
directory at the same level in a directory structure.
├── dbt_models
│ ├── customers.sql
│ ├── products.sql
├── procedures
│ ├── admin
│ │ ├── create_database_writer_role.js
│ │ ├── create_database_reader_role.js
│ ├── development
│ │ ├── create_temp_database.js
└── .sprocketship.yml
The yaml path to each procedure in the sprocketship.yml
should follow that of the paths to their corresponding files in the procedures/
directory.
procedures:
development:
- name: create_temp_database
replace_if_exists: true
database: {{ env.get('SNOWFLAKE_DATABASE') }}
schema: {{ env.get('SNOWFLAKE_SCHEMA') }}
...
admin:
- name: create_database_reader
replace_if_exists: true
database: {{ env.get('SNOWFLAKE_DATABASE') }}
schema: {{ env.get('SNOWFLAKE_SCHEMA') }}
...
- name: create_database_writer
replace_if_exists: true
database: {{ env.get('SNOWFLAKE_DATABASE') }}
schema: {{ env.get('SNOWFLAKE_SCHEMA') }}
...
From here, simply run sprocketship liftoff
from the project directory (or provide the directory, e.g. sprocketship liftoff my/directory/path
) and sprocketship will launch your stored procedures into the given directory.
License
Distributed under the MIT License. See LICENSE
for more information.
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
File details
Details for the file sprocketship-0.0.5.tar.gz
.
File metadata
- Download URL: sprocketship-0.0.5.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e528c9554f5ba34b75aae1d693067ee49a367e77ee2297ab1cc1db7783bbf22 |
|
MD5 | 7872e05e70d61ecea3fe73bde4d622d8 |
|
BLAKE2b-256 | 71bcd073dceb673bbee874772122a54be34f97ee3c6d345fb99b25c69656d3da |
File details
Details for the file sprocketship-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: sprocketship-0.0.5-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2aafedb4ab3833d793ab6b19a0d11043cd913d75d7420abd8e4663a2c908dc84 |
|
MD5 | 91d8057a8cd48260cc9d808aa55ea8d5 |
|
BLAKE2b-256 | f1c3d2aa5ccc02b08971e204ba007eb2daffdb5a330a63bbf56c3dbe6ccbffc8 |