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.11.tar.gz (11.5 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.11-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: goshawk-0.0.1.11.tar.gz
  • Upload date:
  • Size: 11.5 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.11.tar.gz
Algorithm Hash digest
SHA256 cb9c6615f0e9b2cd8a53f86258f4c7e6e6cd1d155fee56ebe37bb5b5ddf171d2
MD5 c6a142063ae80d6240ff659e646bac21
BLAKE2b-256 000d74a99e505c9b422fd3f0c39da002db0ed7bd525adee4de5c056e727a0a28

See more details on using hashes here.

File details

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

File metadata

  • Download URL: goshawk-0.0.1.11-py3-none-any.whl
  • Upload date:
  • Size: 16.3 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.11-py3-none-any.whl
Algorithm Hash digest
SHA256 95b9ad5030ed305ea9aa3f88be8dd4bd9b62c983ea46e7fd2fb6516ad031b9b6
MD5 a4c4ca0fd105069197098b0ab0bad93d
BLAKE2b-256 87b0115d8915672829ffbe48f9d32a7d38ffcbe5cb712aeb617050032cebde05

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