Skip to main content

SQL Models for humans

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.1.4.1.tar.gz (475.6 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.1.4.1-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: goshawk-0.1.4.1.tar.gz
  • Upload date:
  • Size: 475.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.29

File hashes

Hashes for goshawk-0.1.4.1.tar.gz
Algorithm Hash digest
SHA256 aada43f9e8b741486423b4b0ca138477d129499d07f93ac4d369c581f8ab0ef3
MD5 b282a4be63c714eb1f881391b959c97f
BLAKE2b-256 16384ff4940019c0b2b2a160c124bbb643840643ff6ce68277134d495121d03b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: goshawk-0.1.4.1-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.29

File hashes

Hashes for goshawk-0.1.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4ebf47caa92485f29e5d7febd9d68c4983ff153595461fc5fad124162e2d99fc
MD5 595d6c35581b131469a7e114635417cb
BLAKE2b-256 f06502d1378c009a21ef55d7c964d0f3b06760b0bf487f1f53c800819287027b

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