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.9.tar.gz (10.9 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.9-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: goshawk-0.0.1.9.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-1021-azure

File hashes

Hashes for goshawk-0.0.1.9.tar.gz
Algorithm Hash digest
SHA256 02aafb831a81fd6b496df03aebb7a689e91b8e2e9b8984ad45c66deb6003f8f1
MD5 fa19a8037cf4074fb52c805381760f35
BLAKE2b-256 c6de81ce9c1c06b6de22fd84e5fe85edfc3a26a5bb3160f8fec6b31ead32e2b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: goshawk-0.0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 14.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-1021-azure

File hashes

Hashes for goshawk-0.0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 433e2339c4aee3be65d6f81afb476b18d11daf47da1cc25783c6e1f67eeeb349
MD5 3c07a0fd31f6e5f10c98f290b45ccf7e
BLAKE2b-256 6cca47aea500ea88e7ab9a1725dc667f25cc8f4ddac2527e4c7001af8c476b87

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