.dbtignore

.dbtignore

dbt 프로젝트 루트에 .dbtignore 파일을 만들어 dbt가 완전히 무시할 파일을 지정할 수 있어요. 이 파일은 .gitignore 파일과 같은 구문으로 동작해요. 패턴과 일치하는 파일과 하위 디렉터리는 읽히지 않고, 파싱되지 않으며, dbt가 감지하지도 않아요. 마치 존재하지 않는 것처럼요.

출처: 문서

본문

예시

.dbtignore

# .dbtignore

# ignore individual .py files
not-a-dbt-model.py
another-non-dbt-model.py

# ignore all .py files
**.py

# ignore all .py files with "codegen" in the filename
*codegen*.py

# ignore all folders in a directory
path/to/folders/**

# ignore some folders in a directory
path/to/folders/subfolder/**

더 알아보기 (Learn more)

  • .dbtignore는 Python 모델 파일 등 dbt가 처리하지 않길 원하는 파일을 제외할 때 써요.
  • 관련 개념: dbt 프로젝트 구조.