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.12.tar.gz (12.0 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.12-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for goshawk-0.0.1.12.tar.gz
Algorithm Hash digest
SHA256 c2824a5810c736ebbd5811e0eda5252a4b228d6b7d40e23a6d827713f67d1058
MD5 b420844381cd43a1da49eb45358f20ad
BLAKE2b-256 476b70f744f4817673eb95bfe07ac6cb23cdc9621421b5627daa16b24cb52308

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for goshawk-0.0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 57633952b06501f36339e481f50025c22c07838f607f2e0819844f26b8aa7bd7
MD5 dcd0c6b22496bbe232fcf258e89c5599
BLAKE2b-256 0fa0c06c5aa5f48cdebde1a54355550b3e458088733b1650a45ae56790ce7b03

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