├── .github └── pull_request_template.md ├── .gitignore ├── LICENSE ├── README.md ├── dbt_project.yml ├── integration_tests ├── README.md ├── dbt_project_files │ ├── dev_db.yml │ ├── dev_db_dev_sch.yml │ ├── dev_db_env_sch.yml │ ├── dev_sch.yml │ ├── env_dbs.yml │ └── env_sch.yml ├── import_project │ ├── dbt_project.yml │ └── models │ │ └── staging │ │ └── stg__cross_project.sql ├── macros │ ├── create_test_db.sql │ ├── generate_custom_database.sql │ ├── generate_custom_schema.sql │ └── ref.sql ├── models │ ├── marts │ │ ├── _marts_models.yml │ │ ├── cross_project.sql │ │ ├── defer_prod.sql │ │ ├── defer_prod_two_arg.sql │ │ ├── defer_vers_new.sql │ │ ├── defer_vers_old.sql │ │ ├── dev_fallback.sql │ │ ├── dev_newer.sql │ │ ├── ephem.sql │ │ └── snapshot_example.sql │ └── staging │ │ ├── _stg_models.yml │ │ ├── stg__defer_prod.sql │ │ ├── stg__defer_vers_v1.sql │ │ ├── stg__defer_vers_v2.sql │ │ ├── stg__dev_fallback.sql │ │ ├── stg__dev_newer.sql │ │ └── stg__ephem.sql ├── package-lock.yml ├── packages.yml ├── profiles.yml ├── run_tests.sh ├── snapshots │ └── snp__example.sql ├── test_all_projects.sh └── tests │ ├── singular_test.sql │ └── test_empty_flag.sql ├── macros ├── .gitkeep ├── check_reqd_vars.sql ├── find_model_node.sql ├── find_selected_nodes.sql ├── get_table_update_ts.sql ├── raise_ref_not_found_error.sql └── ref.sql ├── pyproject.toml └── uv.lock /.github/pull_request_template.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/.github/pull_request_template.md -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/README.md -------------------------------------------------------------------------------- /dbt_project.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/dbt_project.yml -------------------------------------------------------------------------------- /integration_tests/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/README.md -------------------------------------------------------------------------------- /integration_tests/dbt_project_files/dev_db.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/dbt_project_files/dev_db.yml -------------------------------------------------------------------------------- /integration_tests/dbt_project_files/dev_db_dev_sch.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/dbt_project_files/dev_db_dev_sch.yml -------------------------------------------------------------------------------- /integration_tests/dbt_project_files/dev_db_env_sch.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/dbt_project_files/dev_db_env_sch.yml -------------------------------------------------------------------------------- /integration_tests/dbt_project_files/dev_sch.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/dbt_project_files/dev_sch.yml -------------------------------------------------------------------------------- /integration_tests/dbt_project_files/env_dbs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/dbt_project_files/env_dbs.yml -------------------------------------------------------------------------------- /integration_tests/dbt_project_files/env_sch.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/dbt_project_files/env_sch.yml -------------------------------------------------------------------------------- /integration_tests/import_project/dbt_project.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/import_project/dbt_project.yml -------------------------------------------------------------------------------- /integration_tests/import_project/models/staging/stg__cross_project.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/import_project/models/staging/stg__cross_project.sql -------------------------------------------------------------------------------- /integration_tests/macros/create_test_db.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/macros/create_test_db.sql -------------------------------------------------------------------------------- /integration_tests/macros/generate_custom_database.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/macros/generate_custom_database.sql -------------------------------------------------------------------------------- /integration_tests/macros/generate_custom_schema.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/macros/generate_custom_schema.sql -------------------------------------------------------------------------------- /integration_tests/macros/ref.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/macros/ref.sql -------------------------------------------------------------------------------- /integration_tests/models/marts/_marts_models.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/models/marts/_marts_models.yml -------------------------------------------------------------------------------- /integration_tests/models/marts/cross_project.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/models/marts/cross_project.sql -------------------------------------------------------------------------------- /integration_tests/models/marts/defer_prod.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/models/marts/defer_prod.sql -------------------------------------------------------------------------------- /integration_tests/models/marts/defer_prod_two_arg.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/models/marts/defer_prod_two_arg.sql -------------------------------------------------------------------------------- /integration_tests/models/marts/defer_vers_new.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/models/marts/defer_vers_new.sql -------------------------------------------------------------------------------- /integration_tests/models/marts/defer_vers_old.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/models/marts/defer_vers_old.sql -------------------------------------------------------------------------------- /integration_tests/models/marts/dev_fallback.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/models/marts/dev_fallback.sql -------------------------------------------------------------------------------- /integration_tests/models/marts/dev_newer.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/models/marts/dev_newer.sql -------------------------------------------------------------------------------- /integration_tests/models/marts/ephem.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/models/marts/ephem.sql -------------------------------------------------------------------------------- /integration_tests/models/marts/snapshot_example.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/models/marts/snapshot_example.sql -------------------------------------------------------------------------------- /integration_tests/models/staging/_stg_models.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/models/staging/_stg_models.yml -------------------------------------------------------------------------------- /integration_tests/models/staging/stg__defer_prod.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/models/staging/stg__defer_prod.sql -------------------------------------------------------------------------------- /integration_tests/models/staging/stg__defer_vers_v1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/models/staging/stg__defer_vers_v1.sql -------------------------------------------------------------------------------- /integration_tests/models/staging/stg__defer_vers_v2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/models/staging/stg__defer_vers_v2.sql -------------------------------------------------------------------------------- /integration_tests/models/staging/stg__dev_fallback.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/models/staging/stg__dev_fallback.sql -------------------------------------------------------------------------------- /integration_tests/models/staging/stg__dev_newer.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/models/staging/stg__dev_newer.sql -------------------------------------------------------------------------------- /integration_tests/models/staging/stg__ephem.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/models/staging/stg__ephem.sql -------------------------------------------------------------------------------- /integration_tests/package-lock.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/package-lock.yml -------------------------------------------------------------------------------- /integration_tests/packages.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/packages.yml -------------------------------------------------------------------------------- /integration_tests/profiles.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/profiles.yml -------------------------------------------------------------------------------- /integration_tests/run_tests.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/run_tests.sh -------------------------------------------------------------------------------- /integration_tests/snapshots/snp__example.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/snapshots/snp__example.sql -------------------------------------------------------------------------------- /integration_tests/test_all_projects.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/test_all_projects.sh -------------------------------------------------------------------------------- /integration_tests/tests/singular_test.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/tests/singular_test.sql -------------------------------------------------------------------------------- /integration_tests/tests/test_empty_flag.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/integration_tests/tests/test_empty_flag.sql -------------------------------------------------------------------------------- /macros/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /macros/check_reqd_vars.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/macros/check_reqd_vars.sql -------------------------------------------------------------------------------- /macros/find_model_node.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/macros/find_model_node.sql -------------------------------------------------------------------------------- /macros/find_selected_nodes.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/macros/find_selected_nodes.sql -------------------------------------------------------------------------------- /macros/get_table_update_ts.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/macros/get_table_update_ts.sql -------------------------------------------------------------------------------- /macros/raise_ref_not_found_error.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/macros/raise_ref_not_found_error.sql -------------------------------------------------------------------------------- /macros/ref.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/macros/ref.sql -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/pyproject.toml -------------------------------------------------------------------------------- /uv.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LewisDavies/upstream-prod/HEAD/uv.lock --------------------------------------------------------------------------------