dbt Graph
prefect_dbt_flow.dbt.graph
Code for parsing dbt project and generate a list of dbt nodes
parse_dbt_project(project, profile, dag_options=None)
Parses a list of dbt nodes class objects from dbt ls cli command.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
project |
DbtProject
|
A class that represents a dbt project configuration. |
required |
profile |
Optional[DbtProfile]
|
A class that represents a dbt profile configuration. |
required |
dag_options |
Optional[DbtDagOptions]
|
A class to add dbt DAG configurations. |
None
|
Returns:
Name | Type | Description |
---|---|---|
dbt_graph |
List[DbtNode]
|
A list of dbt nodes, each node as a dataclass. |
Source code in prefect_dbt_flow/dbt/graph.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
|