File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,31 @@ export const RESOURCE_TYPE_SNAPSHOT = "snapshot";
29
29
export const RESOURCE_TYPE_TEST = "test" ;
30
30
export const RESOURCE_TYPE_METRIC = "semantic_model" ;
31
31
32
- export function readAndParseProjectConfig ( projectRoot : string ) {
32
+ export interface DBTProjectConfig {
33
+ name : string ;
34
+ version ?: string ;
35
+ profile ?: string ;
36
+ model_paths ?: string [ ] ;
37
+ analysis_paths ?: string [ ] ;
38
+ test_paths ?: string [ ] ;
39
+ seed_paths ?: string [ ] ;
40
+ macro_paths ?: string [ ] ;
41
+ snapshot_paths ?: string [ ] ;
42
+ target_path ?: string ;
43
+ clean_targets ?: string [ ] ;
44
+ log_path ?: string ;
45
+ packages_install_path ?: string ;
46
+ models ?: Record < string , any > ;
47
+ seeds ?: Record < string , any > ;
48
+ snapshots ?: Record < string , any > ;
49
+ sources ?: Record < string , any > ;
50
+ tests ?: Record < string , any > ;
51
+ vars ?: Record < string , any > ;
52
+ }
53
+
54
+ export function readAndParseProjectConfig (
55
+ projectRoot : string ,
56
+ ) : DBTProjectConfig {
33
57
const dbtProjectConfigLocation = path . join ( projectRoot , DBT_PROJECT_FILE ) ;
34
58
const dbtProjectYamlFile = readFileSync ( dbtProjectConfigLocation , "utf8" ) ;
35
59
return parse ( dbtProjectYamlFile , {
You can’t perform that action at this time.
0 commit comments