Giter VIP home page Giter VIP logo

fastapi-dbt's Introduction

dbt logo

DBT Basics

YMLs

project.yml

Usado para configurações gerais do projeto como paths.

sources.yml

Descreve tabelas do banco que são utilizadas os ``models``

schema.yml

Usado para descrever views e testes.

CLI

Gerar Lineage/docs

dbt docs generate --vars '{"database":"teste","profile":"general","dates":"false","host":"localhost","port":9000,"user":"default","password": ""}'

Abre docs no navegador

dbt docs serve --vars '{"database":"teste","profile":"general","dates":"false","host":"localhost","port":9000,"user":"default","password": ""}'

Rodar Model específico

"-s", "--select"

dbt run -m models/staging/ingestion_validation --vars '{"database":"teste","profile":"general","dates":"false","host":"localhost","port":9000,"user":"default","password": ""}'

Insights

Gerar views nas marcas

dbt run -m models/marts/oto-insights/export-insights --vars '{"database":"teste","profile":"general","host":"localhost","port":9000,"user":"default","password": ""} '

OBS

dbt run -m models/marts/oto-insights/export-insights --vars '{"database":"teste","profile":"general"} '

O arquivo profile possui valores dafault para os parametros (User,Password,Port,Host) não sendo necessário passar esses parametros.

fastapi-dbt's People

Watchers

Guilherme Cardoso de Vargas 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.