Giter Club home page Giter Club logo

dbt_schema_generator's Introduction

dbt Schema Generator

A command-line tool to generate schema.yml files for specified dbt models.

Installation

Install the package using pip:

pip install dbt_schema_generator

Usage

You can use the dbt_schema_generator command-line tool with the following options:

-m, --models: A comma-separated list of model names to include in the schema.yml file. -p, --path: A path to include models in the schema.yml file.

Examples:

dbt_schema_generator -m model1,model2,model3
dbt_schema_generator --models model1,model2,model3
# Using this format, dbt_schema_generator would generate a schema.yml file for all models within your_folder
dbt_schema_generator -path models/your_folder
dbt_schema_generator --path models/your_folder

NOTE: When using path the format should always be models/ the folder unless you have changed the model-paths in your dbt_project.yml

NOTE: When using the --path option, the format should always be models/your_folder unless you have changed the model-paths in your dbt_project.yml.

!!!!IMPORTANT!!!!: Be very careful when using the --path method as this would overwrite any schema.yml currently within the folder

dbt_schema_generator's People

Contributors

muizzkolapo avatar muizzhash avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.