You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NO, not yet (maybe!), sometime this module is not going to work perfectly due to:
61
+
NO, not yet (maybe!), sometimes this module is not going to work perfectly due to:
62
62
63
63
- Some relationship tests are added from `mart` to `staging` just for ensuring no missing data when moving from a layer to another.
64
64
- That's why we have the [ignore_in_erd](https://dbterd.datnguyen.de/1.15/nav/metadata/ignore_in_erd.html) metadata config.
65
65
- We have the tests done in separate tools already (e.g. Soda), there is no reason to duplicate the (relationship) tests here.
66
66
- No problem! Let's still add it with `where: 1=0` or with the dummy relationship tests (see this [blogpost](https://medium.com/@vaibhavchopda04/generating-erds-from-dbt-projects-a-code-driven-approach-83abb957f483))
67
67
68
-
In case that we don't want to leverage the dbt tests still, let's move on the next section for the alternative 🏃
68
+
In case we don't want to leverage the dbt tests still, let's move on to the next section for the alternative 🏃
Specified algorithm in the way to detect diagram connectors
324
+
Specified algorithm for detecting diagram connectors
325
325
326
326
Check the [docs](./choose-algo.md) 📖
327
327
@@ -471,7 +471,7 @@ Flag to indicate the Selection to follow dbt's one leveraging Programmatic Invoc
471
471
472
472
Flag to indicate force running `dbt docs generate` to the targeted project in order to produce the dbt artifact files.
473
473
474
-
This option have to be enabled together with `--dbt` option, and will override the value of `--artifacts-dir` to be using the `/target` dir of the value of `--dbt-project-dir`.
474
+
This option has to be enabled together with `--dbt` option, and will override the value of `--artifacts-dir` to use the `/target` dir of the value of `--dbt-project-dir`.
475
475
476
476
> Default to `False`
477
477
@@ -486,7 +486,7 @@ This option have to be enabled together with `--dbt` option, and will override t
486
486
487
487
Specified dbt project directory path
488
488
489
-
You should specified this option if your CWD is not the dbt project dir, and normally used with `--dbt` enabled. It will take the value of `--artifacts-dir` if not specified.
489
+
You should specify this option if your CWD is not the dbt project dir, and normally used with `--dbt` enabled. It will take the value of `--artifacts-dir` if not specified.
490
490
491
491
> Default to the current directory if both this option and `--artifacts-dir` option are not specified
492
492
@@ -623,7 +623,7 @@ Check [this guideline](./dbt-cloud/read-artifact-from-an-environment.md) for mor
623
623
Generate ERD file from reading Discovery API (dbt Cloud).
624
624
625
625
Options:
626
-
-s, --select TEXT Selecttion criteria
626
+
-s, --select TEXT Selection criteria
627
627
-ns, --exclude TEXT Exclusion criteria
628
628
-t, --target TEXT Target to the diagram-as-code platform
629
629
[default: dbml]
@@ -738,7 +738,7 @@ Shows hidden configured values, which will help us to see what configs are passe
738
738
Inspect the hidden magics.
739
739
740
740
Options:
741
-
-s, --select TEXT Selecttion criteria
741
+
-s, --select TEXT Selection criteria
742
742
-ns, --exclude TEXT Exclusion criteria
743
743
-t, --target TEXT Target to the diagram-as-code platform
Copy file name to clipboardExpand all lines: docs/nav/guide/dbt-cloud/read-artifact-from-an-environment.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
# Read the latest artifacts from an environment
2
2
3
-
This is a guideline on how to query the dbt cloud metadata given an environment by using [dbt CLoud Discovery API](https://docs.getdbt.com/docs/dbt-cloud-apis/discovery-api). It's neither not requiring `JOB ID`nor`JOB RUN ID`, this is the dbt Cloud's `ENVIRONMENT ID`. Especially, with this method, `dbterd` doesn't require to download files before hands anymore, the ERD will be generated on fly 🚀.
3
+
This is a guideline on how to query the dbt cloud metadata given an environment by using [dbt Cloud Discovery API](https://docs.getdbt.com/docs/dbt-cloud-apis/discovery-api). It doesn't require `JOB ID`or`JOB RUN ID`, but rather the dbt Cloud's `ENVIRONMENT ID`. Especially, with this method, `dbterd` doesn't require downloading files beforehand anymore, the ERD will be generated on the fly 🚀.
4
4
5
-
`dbterd`is now understanding GraphQL connection which is exposed by dbt CLoud Discovery API endpoint:
5
+
`dbterd` now understands GraphQL connections which are exposed by dbt Cloud Discovery API endpoint:
- You must be on a [Team or Enterprise plan](https://www.getdbt.com/pricing/) 💰
16
16
- Your projects must be on dbt version 1.0 or later 🏃
17
17
18
-
The assumption is that you've already get the dbt Cloud project ready and is having at least 1 environment, and 1 job run successfully in this environment.
18
+
The assumption is that you've already got the dbt Cloud project ready and have at least 1 environment, and 1 job run successfully in this environment.
We're going to use a new command as `dbterd run-metadata` to tell `dbterd` to use dbt Cloud Discovery API with all above variables.
70
70
71
-
The command will be looks like:
71
+
The command will look like:
72
72
73
73
```bash
74
74
dbterd run-metadata [-s <dbterd selection>]
75
75
```
76
76
77
-
> Behind the scenes, it will try use to the ERD GraphQL query built-in at [include/erd_query.gql](https://github.com/datnguye/dbterd/tree/main/dbterd/adapters/dbt_cloud/include/erd_query.gql)
77
+
> Behind the scenes, it will try to use the ERD GraphQL query built-in at [include/erd_query.gql](https://github.com/datnguye/dbterd/tree/main/dbterd/adapters/dbt_cloud/include/erd_query.gql)
0 commit comments