@@ -3,20 +3,31 @@ config:
3
3
4
4
# Credit to https://github.com/codeforkjeff/dbt-sqlite
5
5
dbt-sqlite :
6
- target : dev
6
+ target : " {{ env_var('TARGET', 'default') }} "
7
7
outputs :
8
- dev :
9
- type : sqlite
8
+ # There is more than one target because dbt-sqlite for dbt~=0.18.x
9
+ # uses a different format for schemas_and_paths
10
+ 0.18.x :
11
+ type : &type sqlite
10
12
# sqlite locks the whole db on writes so anything > 1 won't help
11
- threads : 1
12
- # value is arbitrary
13
- database : " database"
14
- # value of 'schema' must be defined in schema_paths below. in most cases,
15
- # this should be 'main'
16
- schema : ' main'
17
- # connect schemas to paths: at least one of these must be 'main'
18
- schemas_and_paths : ' main=test.db'
19
- # directory where all *.db files are attached as schema, using base filename
20
- # as schema name, and where new schema are created. this can overlap with the dirs of
21
- # files in schemas_and_paths as long as there's no conflicts.
22
- schema_directory : ' .'
13
+ threads : &threads 1
14
+ # Value is arbitrary
15
+ database : &database database
16
+ # Value of 'schema' must be defined in schema_paths below.
17
+ # In most cases, this should be 'main'
18
+ schema : &schema main
19
+ # Connect schemas to paths: at least one of these must be 'main'
20
+ schemas_and_paths : main=test.db
21
+ # Directory where all *.db files are attached as schema, using
22
+ # base filename as schema name, and where new schema are created.
23
+ # This can overlap with the dirs of files in schemas_and_paths as
24
+ # long as there are no conflicts.
25
+ schema_directory : &schema_directory .
26
+ default :
27
+ type : *type
28
+ threads : *threads
29
+ database : *database
30
+ schema : *schema
31
+ schemas_and_paths :
32
+ main : test.db
33
+ schema_directory : *schema_directory
0 commit comments