Define sources yml file

PHOTO EMBED

Sun May 07 2023 06:09:59 GMT+0000 (Coordinated Universal Time)

Saved by @klleee28 #dbt #yml #mart #source

version: 2

sources:
  - name: jaffle_shop
    description: a clone of a Postgres application database
    database: raw
    tables:
      - name: customers
        description: the raw customer data
        columns: 
          - name: id
            description: primary key of raw customer data
            tests: 
              - unique
              - not_null
      - name: orders
        description: the raw orders data
        columns: 
          - name: id
            description: primary key of raw orders data
            tests: 
              - unique
              - not_null
  
content_copyCOPY

https://docs.getdbt.com/docs/build/sources#tag/Runs/operation/cancelRunById