Skip to content

Simple conversion of a dbt schema file (containing e.g. tests for uniqueness, not null, relationships) to associated DDL statements (Postgres)

Notifications You must be signed in to change notification settings

soply/dbt_schema_to_ddl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

Basic Python 3

Usage

Run the command

python generate_ddl.py <inschema.yml> <target_ddl_statements.sql> <target_postgres_schema_name>

Currently limited support:

  1. not null
  2. primary keys
  3. uniquness
  4. foreign keys with one column

About

Simple conversion of a dbt schema file (containing e.g. tests for uniqueness, not null, relationships) to associated DDL statements (Postgres)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages