Skip to main content

A tool for managing SQL Models

Project description

goshawk

Release Build status codecov Commit activity License

SQL Model Management for Humans

Getting started with Goshawk

Installation

We recommend installing with pipx

pipx install gohawk

Or install with pip (you should always use a virtual environment)

pip install gohawk

Verify your installation

goshawk view-model-tree --schemas-only

This will display the DAG of the included sample schema

Set MODELS_PATH env var to the folder containing your models.

`-- models <-set MODELS_PATH to the path to this folder
     -- mydatabase
         -- schema_1
             -- model_1a.sql
             -- model_1b.sql
         -- schema_2
             -- model_2a.sql
             -- model_2b.sql

export MODELS_PATH=models

Create a dev environemnt

goshawk init-env [envname]

Test your changes (using your dev environment)

goshawk deploy-models --test --db-env [envname]

Deploy your changes to your dev environment

goshawk deploy-models --test --db-env [envname]

Destroy your dev environemnt

goshawk destroy-env [envname]

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

goshawk-0.0.1.6.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

goshawk-0.0.1.6-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file goshawk-0.0.1.6.tar.gz.

File metadata

  • Download URL: goshawk-0.0.1.6.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.8 Linux/6.5.0-1016-azure

File hashes

Hashes for goshawk-0.0.1.6.tar.gz
Algorithm Hash digest
SHA256 bdd15e78b89baff05ccb47080d2b5966c24d1e48679f348ea0e81473fbd6bcf2
MD5 11370957b3fcf9967415a08f886dba3f
BLAKE2b-256 ebac0e5e0470089f8365705ce29b4c93ab9845bc5f88164bd17a141044ab3e59

See more details on using hashes here.

File details

Details for the file goshawk-0.0.1.6-py3-none-any.whl.

File metadata

  • Download URL: goshawk-0.0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.8 Linux/6.5.0-1016-azure

File hashes

Hashes for goshawk-0.0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 4233c96e6ee06ee714eb473b4e730aa7176eb1ba98c142966b7c611a76e8b801
MD5 ea6fd44bb0ba55926f3572f0a528b4e3
BLAKE2b-256 e270a09e756e36daf68277dfc7a8b0fa7663fb7a0ad45c0315ce0b5d3de2c61b

See more details on using hashes here.

Supported by

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